Skip to content

Commit 079337f

Browse files
authored
Merge pull request #43 from Dataherald/release-please--branches--main--changes--next
release: 0.17.1
2 parents 6016d5b + dec9b84 commit 079337f

20 files changed

Lines changed: 77 additions & 46 deletions

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
lint:
1212
name: lint
1313
runs-on: ubuntu-latest
14-
if: github.repository == 'Dataherald/dataherald-python'
14+
1515

1616
steps:
1717
- uses: actions/checkout@v3

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.17.0"
2+
".": "0.17.1"
33
}

CHANGELOG.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,21 @@
11
# Changelog
22

3-
## 0.17.0 (2024-02-09)
3+
## 0.17.1 (2024-02-19)
44

5-
Full Changelog: [v0.16.0...v0.17.0](https://github.com/Dataherald/dataherald-python/compare/v0.16.0...v0.17.0)
5+
Full Changelog: [v0.16.0...v0.17.1](https://github.com/Dataherald/dataherald-python/compare/v0.16.0...v0.17.1)
66

77
### Features
88

9-
* OpenAPI spec update ([#38](https://github.com/Dataherald/dataherald-python/issues/38)) ([5852d74](https://github.com/Dataherald/dataherald-python/commit/5852d745b443ac13bf771c1bd4c507f66a91620c))
9+
* Add initial Stainless SDK ([6609250](https://github.com/Dataherald/dataherald-python/commit/6609250456ab0823a593a5ba0d02273480ee2b3c))
10+
* Add initial Stainless SDK ([5bb16c7](https://github.com/Dataherald/dataherald-python/commit/5bb16c71c17bc7b284112e3b154d1d02baeb4694))
11+
* Add initial Stainless SDK ([4ef184a](https://github.com/Dataherald/dataherald-python/commit/4ef184a773477c504daa960910d01045d92b0640))
12+
* update via SDK Studio ([#42](https://github.com/Dataherald/dataherald-python/issues/42)) ([5fb018b](https://github.com/Dataherald/dataherald-python/commit/5fb018b58c6e283496bc2ff8b3a178cbe09c41f4))
13+
* update via SDK Studio ([#44](https://github.com/Dataherald/dataherald-python/issues/44)) ([0e38464](https://github.com/Dataherald/dataherald-python/commit/0e38464bc3291186574a1b7bbde84e653a9f5cf0))
14+
15+
16+
### Chores
17+
18+
* go live ([#40](https://github.com/Dataherald/dataherald-python/issues/40)) ([1bcb040](https://github.com/Dataherald/dataherald-python/commit/1bcb04011466fb4e338c416d23bfed1ebb2ab2e6))
1019

1120
## 0.16.0 (2024-01-24)
1221

bin/check-release-environment

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ if [ -z "${PYPI_TOKEN}" ]; then
66
errors+=("The DATAHERALD_PYPI_TOKEN secret has not been set. Please set it in either this repository's secrets or your organization secrets.")
77
fi
88

9-
len=${#errors[@]}
9+
lenErrors=${#errors[@]}
1010

11-
if [[ len -gt 0 ]]; then
11+
if [[ lenErrors -gt 0 ]]; then
1212
echo -e "Found the following errors in the release environment:\n"
1313

1414
for error in "${errors[@]}"; do

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "dataherald"
3-
version = "0.17.0"
3+
version = "0.17.1"
44
description = "The official Python library for the Dataherald API"
55
readme = "README.md"
66
license = "Apache-2.0"

src/dataherald/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless.
22

33
__title__ = "dataherald"
4-
__version__ = "0.17.0" # x-release-please-version
4+
__version__ = "0.17.1" # x-release-please-version

src/dataherald/resources/finetunings.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ def with_streaming_response(self) -> FinetuningsWithStreamingResponse:
4141
def create(
4242
self,
4343
*,
44+
alias: str,
45+
base_llm: finetuning_create_params.BaseLlm,
4446
db_connection_id: str,
45-
alias: str | NotGiven = NOT_GIVEN,
46-
base_llm: finetuning_create_params.BaseLlm | NotGiven = NOT_GIVEN,
4747
golden_sqls: List[str] | NotGiven = NOT_GIVEN,
4848
metadata: object | NotGiven = NOT_GIVEN,
4949
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -69,9 +69,9 @@ def create(
6969
"/api/finetunings",
7070
body=maybe_transform(
7171
{
72-
"db_connection_id": db_connection_id,
7372
"alias": alias,
7473
"base_llm": base_llm,
74+
"db_connection_id": db_connection_id,
7575
"golden_sqls": golden_sqls,
7676
"metadata": metadata,
7777
},
@@ -199,9 +199,9 @@ def with_streaming_response(self) -> AsyncFinetuningsWithStreamingResponse:
199199
async def create(
200200
self,
201201
*,
202+
alias: str,
203+
base_llm: finetuning_create_params.BaseLlm,
202204
db_connection_id: str,
203-
alias: str | NotGiven = NOT_GIVEN,
204-
base_llm: finetuning_create_params.BaseLlm | NotGiven = NOT_GIVEN,
205205
golden_sqls: List[str] | NotGiven = NOT_GIVEN,
206206
metadata: object | NotGiven = NOT_GIVEN,
207207
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -227,9 +227,9 @@ async def create(
227227
"/api/finetunings",
228228
body=maybe_transform(
229229
{
230-
"db_connection_id": db_connection_id,
231230
"alias": alias,
232231
"base_llm": base_llm,
232+
"db_connection_id": db_connection_id,
233233
"golden_sqls": golden_sqls,
234234
"metadata": metadata,
235235
},

src/dataherald/resources/golden_sqls.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def list(
7676
self,
7777
*,
7878
ascend: bool | NotGiven = NOT_GIVEN,
79+
db_connection_id: str | NotGiven = NOT_GIVEN,
7980
order: str | NotGiven = NOT_GIVEN,
8081
page: int | NotGiven = NOT_GIVEN,
8182
page_size: int | NotGiven = NOT_GIVEN,
@@ -108,6 +109,7 @@ def list(
108109
query=maybe_transform(
109110
{
110111
"ascend": ascend,
112+
"db_connection_id": db_connection_id,
111113
"order": order,
112114
"page": page,
113115
"page_size": page_size,
@@ -230,6 +232,7 @@ async def list(
230232
self,
231233
*,
232234
ascend: bool | NotGiven = NOT_GIVEN,
235+
db_connection_id: str | NotGiven = NOT_GIVEN,
233236
order: str | NotGiven = NOT_GIVEN,
234237
page: int | NotGiven = NOT_GIVEN,
235238
page_size: int | NotGiven = NOT_GIVEN,
@@ -262,6 +265,7 @@ async def list(
262265
query=maybe_transform(
263266
{
264267
"ascend": ascend,
268+
"db_connection_id": db_connection_id,
265269
"order": order,
266270
"page": page,
267271
"page_size": page_size,

src/dataherald/types/db_connection_response.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
from .._models import BaseModel
77

8-
__all__ = ["DBConnectionResponse", "Metadata", "MetadataDataheraldInternal", "SSHSettings"]
8+
__all__ = ["DBConnectionResponse", "Metadata", "MetadataDhInternal", "SSHSettings"]
99

1010

11-
class MetadataDataheraldInternal(BaseModel):
11+
class MetadataDhInternal(BaseModel):
1212
organization_id: Optional[str] = None
1313

1414

1515
class Metadata(BaseModel):
16-
dataherald_internal: Optional[MetadataDataheraldInternal] = None
16+
dh_internal: Optional[MetadataDhInternal] = None
1717

1818

1919
class SSHSettings(BaseModel):

src/dataherald/types/finetuning_create_params.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99

1010

1111
class FinetuningCreateParams(TypedDict, total=False):
12-
db_connection_id: Required[str]
12+
alias: Required[str]
1313

14-
alias: str
14+
base_llm: Required[BaseLlm]
1515

16-
base_llm: BaseLlm
16+
db_connection_id: Required[str]
1717

1818
golden_sqls: List[str]
1919

0 commit comments

Comments
 (0)