Skip to content

Commit 0773e05

Browse files
authored
Merge pull request #7 from hanzoai/release-please--branches--main--changes--next
release: 1.1.0
2 parents 3d8be5e + e2e3e9c commit 0773e05

File tree

104 files changed

+1849
-1344
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+1849
-1344
lines changed

.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.1.0-alpha.1"
2+
".": "1.1.0"
33
}

.stats.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
1-
configured_endpoints: 190
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hanzo-industries-inc%2FHanzo-AI-ecabe8785463e6887a841c5e04ff8d9cfc0f051e21c68a65253e121da25fb7d5.yml
1+
configured_endpoints: 188
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hanzo-industries-inc%2FHanzo-AI-74ec345bb9bd4c1c21bd22ff8ed2cd9b1cba5a5c73bf895113c7386b64199b56.yml
3+
openapi_spec_hash: 526f5064d5a79d0a602c9d311b9f8f6b
4+
config_hash: 20426fef371c3da1e306a85d8f9b9ada

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,29 @@
11
# Changelog
22

3+
## 1.1.0 (2025-03-26)
4+
5+
Full Changelog: [v1.0.0...v1.1.0](https://github.com/hanzoai/python-sdk/compare/v1.0.0...v1.1.0)
6+
7+
### Features
8+
9+
* **api:** api update ([#12](https://github.com/hanzoai/python-sdk/issues/12)) ([d37d657](https://github.com/hanzoai/python-sdk/commit/d37d657eea2988c528bb1cb7560f6e0ab2f1e61e))
10+
* **api:** update via SDK Studio ([#4](https://github.com/hanzoai/python-sdk/issues/4)) ([e5137ed](https://github.com/hanzoai/python-sdk/commit/e5137ed411811a52ff9b7cc0e44a678ef3f3065e))
11+
* **api:** update via SDK Studio ([#6](https://github.com/hanzoai/python-sdk/issues/6)) ([8da866d](https://github.com/hanzoai/python-sdk/commit/8da866dea4cc031c8388be2e013f79f96f6f2950))
12+
13+
14+
### Bug Fixes
15+
16+
* **ci:** ensure pip is always available ([#9](https://github.com/hanzoai/python-sdk/issues/9)) ([42dc32d](https://github.com/hanzoai/python-sdk/commit/42dc32d241c11794317fa4a89ee7e1a15a58855b))
17+
* **ci:** remove publishing patch ([#10](https://github.com/hanzoai/python-sdk/issues/10)) ([339a613](https://github.com/hanzoai/python-sdk/commit/339a6135e50161ae8acacaf7d1d7381a6d77428d))
18+
19+
20+
### Chores
21+
22+
* go live ([#1](https://github.com/hanzoai/python-sdk/issues/1)) ([c1f495e](https://github.com/hanzoai/python-sdk/commit/c1f495ea0e560ada8c76c571b42928bf8e1b5ee5))
23+
* go live ([#11](https://github.com/hanzoai/python-sdk/issues/11)) ([7e1b48c](https://github.com/hanzoai/python-sdk/commit/7e1b48ce65cba77dd8fbd7e019d3913c492a87a6))
24+
* **internal:** codegen related update ([#8](https://github.com/hanzoai/python-sdk/issues/8)) ([ebc4649](https://github.com/hanzoai/python-sdk/commit/ebc4649173ca01aeb26903c6fe32adad0be49491))
25+
* update SDK settings ([#3](https://github.com/hanzoai/python-sdk/issues/3)) ([beb5358](https://github.com/hanzoai/python-sdk/commit/beb53583fcdb15983f09a73be166dbbca30fb93f))
26+
327
## 0.1.0-alpha.1 (2025-03-15)
428

529
Full Changelog: [v0.0.1-alpha.0...v0.1.0-alpha.1](https://github.com/hanzoai/python-sdk/compare/v0.0.1-alpha.0...v0.1.0-alpha.1)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ from hanzoai import Hanzo
7979
client = Hanzo()
8080

8181
model = client.model.create(
82-
litellm_params={
82+
llm_params={
8383
"model": "model",
8484
"api_base": "api_base",
8585
"api_key": "api_key",
@@ -92,7 +92,7 @@ model = client.model.create(
9292
"custom_llm_provider": "custom_llm_provider",
9393
"input_cost_per_second": 0,
9494
"input_cost_per_token": 0,
95-
"litellm_trace_id": "litellm_trace_id",
95+
"llm_trace_id": "llm_trace_id",
9696
"max_budget": 0,
9797
"max_file_size_mb": 0,
9898
"max_retries": 0,
@@ -115,7 +115,7 @@ model = client.model.create(
115115
model_info={"id": "id"},
116116
model_name="model_name",
117117
)
118-
print(model.litellm_params)
118+
print(model.llm_params)
119119
```
120120

121121
## File uploads

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ or products provided by Hanzo please follow the respective company's security re
2020

2121
### Hanzo Terms and Policies
2222

23-
Please contact dev-feedback@hanzo.ai for any questions or concerns regarding security of our services.
23+
Please contact dev@hanzo.ai for any questions or concerns regarding security of our services.
2424

2525
---
2626

api.md

Lines changed: 12 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -406,12 +406,7 @@ Methods:
406406
Types:
407407

408408
```python
409-
from hanzoai.types.fine_tuning import (
410-
LiteLlmFineTuningJobCreate,
411-
JobCreateResponse,
412-
JobRetrieveResponse,
413-
JobListResponse,
414-
)
409+
from hanzoai.types.fine_tuning import JobCreateResponse, JobRetrieveResponse, JobListResponse
415410
```
416411

417412
Methods:
@@ -440,8 +435,6 @@ Types:
440435
from hanzoai.types import (
441436
CredentialItem,
442437
CredentialCreateResponse,
443-
CredentialRetrieveResponse,
444-
CredentialUpdateResponse,
445438
CredentialListResponse,
446439
CredentialDeleteResponse,
447440
)
@@ -450,8 +443,6 @@ from hanzoai.types import (
450443
Methods:
451444

452445
- <code title="post /credentials">client.credentials.<a href="./src/hanzoai/resources/credentials.py">create</a>(\*\*<a href="src/hanzoai/types/credential_create_params.py">params</a>) -> <a href="./src/hanzoai/types/credential_create_response.py">object</a></code>
453-
- <code title="get /credentials/{credential_name}">client.credentials.<a href="./src/hanzoai/resources/credentials.py">retrieve</a>(credential_name) -> <a href="./src/hanzoai/types/credential_retrieve_response.py">object</a></code>
454-
- <code title="put /credentials/{credential_name}">client.credentials.<a href="./src/hanzoai/resources/credentials.py">update</a>(path_credential_name, \*\*<a href="src/hanzoai/types/credential_update_params.py">params</a>) -> <a href="./src/hanzoai/types/credential_update_response.py">object</a></code>
455446
- <code title="get /credentials">client.credentials.<a href="./src/hanzoai/resources/credentials.py">list</a>() -> <a href="./src/hanzoai/types/credential_list_response.py">object</a></code>
456447
- <code title="delete /credentials/{credential_name}">client.credentials.<a href="./src/hanzoai/resources/credentials.py">delete</a>(credential_name) -> <a href="./src/hanzoai/types/credential_delete_response.py">object</a></code>
457448

@@ -800,10 +791,8 @@ Types:
800791
```python
801792
from hanzoai.types import (
802793
BlockTeamRequest,
803-
LiteLlmModelTable,
804-
LiteLlmTeamTable,
805-
LiteLlmUserTable,
806794
Member,
795+
TeamCreateResponse,
807796
TeamUpdateResponse,
808797
TeamListResponse,
809798
TeamDeleteResponse,
@@ -820,7 +809,7 @@ from hanzoai.types import (
820809

821810
Methods:
822811

823-
- <code title="post /team/new">client.team.<a href="./src/hanzoai/resources/team/team.py">create</a>(\*\*<a href="src/hanzoai/types/team_create_params.py">params</a>) -> <a href="./src/hanzoai/types/lite_llm_team_table.py">LiteLlmTeamTable</a></code>
812+
- <code title="post /team/new">client.team.<a href="./src/hanzoai/resources/team/team.py">create</a>(\*\*<a href="src/hanzoai/types/team_create_params.py">params</a>) -> <a href="./src/hanzoai/types/team_create_response.py">TeamCreateResponse</a></code>
824813
- <code title="post /team/update">client.team.<a href="./src/hanzoai/resources/team/team.py">update</a>(\*\*<a href="src/hanzoai/types/team_update_params.py">params</a>) -> <a href="./src/hanzoai/types/team_update_response.py">object</a></code>
825814
- <code title="get /team/list">client.team.<a href="./src/hanzoai/resources/team/team.py">list</a>(\*\*<a href="src/hanzoai/types/team_list_params.py">params</a>) -> <a href="./src/hanzoai/types/team_list_response.py">object</a></code>
826815
- <code title="post /team/delete">client.team.<a href="./src/hanzoai/resources/team/team.py">delete</a>(\*\*<a href="src/hanzoai/types/team_delete_params.py">params</a>) -> <a href="./src/hanzoai/types/team_delete_response.py">object</a></code>
@@ -865,40 +854,38 @@ Types:
865854

866855
```python
867856
from hanzoai.types import (
868-
BudgetTable,
869857
OrgMember,
870-
OrganizationMembershipTable,
871-
OrganizationTableWithMembers,
872-
UserRoles,
873858
OrganizationCreateResponse,
859+
OrganizationUpdateResponse,
874860
OrganizationListResponse,
875861
OrganizationDeleteResponse,
876862
OrganizationAddMemberResponse,
877863
OrganizationDeleteMemberResponse,
864+
OrganizationUpdateMemberResponse,
878865
)
879866
```
880867

881868
Methods:
882869

883870
- <code title="post /organization/new">client.organization.<a href="./src/hanzoai/resources/organization/organization.py">create</a>(\*\*<a href="src/hanzoai/types/organization_create_params.py">params</a>) -> <a href="./src/hanzoai/types/organization_create_response.py">OrganizationCreateResponse</a></code>
884-
- <code title="patch /organization/update">client.organization.<a href="./src/hanzoai/resources/organization/organization.py">update</a>(\*\*<a href="src/hanzoai/types/organization_update_params.py">params</a>) -> <a href="./src/hanzoai/types/organization_table_with_members.py">OrganizationTableWithMembers</a></code>
871+
- <code title="patch /organization/update">client.organization.<a href="./src/hanzoai/resources/organization/organization.py">update</a>(\*\*<a href="src/hanzoai/types/organization_update_params.py">params</a>) -> <a href="./src/hanzoai/types/organization_update_response.py">OrganizationUpdateResponse</a></code>
885872
- <code title="get /organization/list">client.organization.<a href="./src/hanzoai/resources/organization/organization.py">list</a>() -> <a href="./src/hanzoai/types/organization_list_response.py">OrganizationListResponse</a></code>
886873
- <code title="delete /organization/delete">client.organization.<a href="./src/hanzoai/resources/organization/organization.py">delete</a>(\*\*<a href="src/hanzoai/types/organization_delete_params.py">params</a>) -> <a href="./src/hanzoai/types/organization_delete_response.py">OrganizationDeleteResponse</a></code>
887874
- <code title="post /organization/member_add">client.organization.<a href="./src/hanzoai/resources/organization/organization.py">add_member</a>(\*\*<a href="src/hanzoai/types/organization_add_member_params.py">params</a>) -> <a href="./src/hanzoai/types/organization_add_member_response.py">OrganizationAddMemberResponse</a></code>
888875
- <code title="delete /organization/member_delete">client.organization.<a href="./src/hanzoai/resources/organization/organization.py">delete_member</a>(\*\*<a href="src/hanzoai/types/organization_delete_member_params.py">params</a>) -> <a href="./src/hanzoai/types/organization_delete_member_response.py">object</a></code>
889-
- <code title="patch /organization/member_update">client.organization.<a href="./src/hanzoai/resources/organization/organization.py">update_member</a>(\*\*<a href="src/hanzoai/types/organization_update_member_params.py">params</a>) -> <a href="./src/hanzoai/types/organization_membership_table.py">OrganizationMembershipTable</a></code>
876+
- <code title="patch /organization/member_update">client.organization.<a href="./src/hanzoai/resources/organization/organization.py">update_member</a>(\*\*<a href="src/hanzoai/types/organization_update_member_params.py">params</a>) -> <a href="./src/hanzoai/types/organization_update_member_response.py">OrganizationUpdateMemberResponse</a></code>
890877

891878
## Info
892879

893880
Types:
894881

895882
```python
896-
from hanzoai.types.organization import InfoDeprecatedResponse
883+
from hanzoai.types.organization import InfoRetrieveResponse, InfoDeprecatedResponse
897884
```
898885

899886
Methods:
900887

901-
- <code title="get /organization/info">client.organization.info.<a href="./src/hanzoai/resources/organization/info.py">retrieve</a>(\*\*<a href="src/hanzoai/types/organization/info_retrieve_params.py">params</a>) -> <a href="./src/hanzoai/types/organization_table_with_members.py">OrganizationTableWithMembers</a></code>
888+
- <code title="get /organization/info">client.organization.info.<a href="./src/hanzoai/resources/organization/info.py">retrieve</a>(\*\*<a href="src/hanzoai/types/organization/info_retrieve_params.py">params</a>) -> <a href="./src/hanzoai/types/organization/info_retrieve_response.py">InfoRetrieveResponse</a></code>
902889
- <code title="post /organization/info">client.organization.info.<a href="./src/hanzoai/resources/organization/info.py">deprecated</a>(\*\*<a href="src/hanzoai/types/organization/info_deprecated_params.py">params</a>) -> <a href="./src/hanzoai/types/organization/info_deprecated_response.py">object</a></code>
903890

904891
# Customer
@@ -908,12 +895,12 @@ Types:
908895
```python
909896
from hanzoai.types import (
910897
BlockUsers,
911-
LiteLlmEndUserTable,
912898
CustomerCreateResponse,
913899
CustomerUpdateResponse,
914900
CustomerListResponse,
915901
CustomerDeleteResponse,
916902
CustomerBlockResponse,
903+
CustomerRetrieveInfoResponse,
917904
CustomerUnblockResponse,
918905
)
919906
```
@@ -925,20 +912,15 @@ Methods:
925912
- <code title="get /customer/list">client.customer.<a href="./src/hanzoai/resources/customer.py">list</a>() -> <a href="./src/hanzoai/types/customer_list_response.py">CustomerListResponse</a></code>
926913
- <code title="post /customer/delete">client.customer.<a href="./src/hanzoai/resources/customer.py">delete</a>(\*\*<a href="src/hanzoai/types/customer_delete_params.py">params</a>) -> <a href="./src/hanzoai/types/customer_delete_response.py">object</a></code>
927914
- <code title="post /customer/block">client.customer.<a href="./src/hanzoai/resources/customer.py">block</a>(\*\*<a href="src/hanzoai/types/customer_block_params.py">params</a>) -> <a href="./src/hanzoai/types/customer_block_response.py">object</a></code>
928-
- <code title="get /customer/info">client.customer.<a href="./src/hanzoai/resources/customer.py">retrieve_info</a>(\*\*<a href="src/hanzoai/types/customer_retrieve_info_params.py">params</a>) -> <a href="./src/hanzoai/types/lite_llm_end_user_table.py">LiteLlmEndUserTable</a></code>
915+
- <code title="get /customer/info">client.customer.<a href="./src/hanzoai/resources/customer.py">retrieve_info</a>(\*\*<a href="src/hanzoai/types/customer_retrieve_info_params.py">params</a>) -> <a href="./src/hanzoai/types/customer_retrieve_info_response.py">CustomerRetrieveInfoResponse</a></code>
929916
- <code title="post /customer/unblock">client.customer.<a href="./src/hanzoai/resources/customer.py">unblock</a>(\*\*<a href="src/hanzoai/types/customer_unblock_params.py">params</a>) -> <a href="./src/hanzoai/types/customer_unblock_response.py">object</a></code>
930917

931918
# Spend
932919

933920
Types:
934921

935922
```python
936-
from hanzoai.types import (
937-
LiteLlmSpendLogs,
938-
SpendCalculateSpendResponse,
939-
SpendListLogsResponse,
940-
SpendListTagsResponse,
941-
)
923+
from hanzoai.types import SpendCalculateSpendResponse, SpendListLogsResponse, SpendListTagsResponse
942924
```
943925

944926
Methods:

bin/publish-pypi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,4 @@
33
set -eux
44
mkdir -p dist
55
rye build --clean
6-
# Patching importlib-metadata version until upstream library version is updated
7-
# https://github.com/pypa/twine/issues/977#issuecomment-2189800841
8-
"$HOME/.rye/self/bin/python3" -m pip install 'importlib-metadata==7.2.1'
96
rye publish --yes --token=$PYPI_TOKEN

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hanzoai"
3-
version = "1.0.0"
3+
version = "1.1.0"
44
description = "The official Python library for the Hanzo API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"
@@ -86,7 +86,7 @@ typecheck = { chain = [
8686
"typecheck:mypy" = "mypy ."
8787

8888
[build-system]
89-
requires = ["hatchling", "hatch-fancy-pypi-readme"]
89+
requires = ["hatchling==1.26.3", "hatch-fancy-pypi-readme"]
9090
build-backend = "hatchling.build"
9191

9292
[tool.hatch.build]

src/hanzoai/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ def set_pydantic_config(typ: Any, config: pydantic.ConfigDict) -> None:
681681
setattr(typ, "__pydantic_config__", config) # noqa: B010
682682

683683

684-
# our use of subclasssing here causes weirdness for type checkers,
684+
# our use of subclassing here causes weirdness for type checkers,
685685
# so we just pretend that we don't subclass
686686
if TYPE_CHECKING:
687687
GenericModel = BaseModel

src/hanzoai/_utils/_transform.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def _get_annotated_type(type_: type) -> type | None:
126126
def _maybe_transform_key(key: str, type_: type) -> str:
127127
"""Transform the given `data` based on the annotations provided in `type_`.
128128
129-
Note: this function only looks at `Annotated` types that contain `PropertInfo` metadata.
129+
Note: this function only looks at `Annotated` types that contain `PropertyInfo` metadata.
130130
"""
131131
annotated_type = _get_annotated_type(type_)
132132
if annotated_type is None:

0 commit comments

Comments
 (0)