Skip to content

Commit f35f085

Browse files
authored
Merge pull request #77 from DataMini/release-please--branches--main--changes--next
release: 3.8.0
2 parents 37b724e + 5ec041d commit f35f085

File tree

9 files changed

+194
-138
lines changed

9 files changed

+194
-138
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-
".": "3.7.0"
2+
".": "3.8.0"
33
}

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 90
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-f4eb4b4f84901ac48b5fbfbde2712cf15833c5824a01aa2e164524465819a2e8.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-9685a6d1ce0077c478727502e935941fe3e5740d45549e3693d29941b462d31a.yml

CHANGELOG.md

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

3+
## 3.8.0 (2024-12-17)
4+
5+
Full Changelog: [v3.7.0...v3.8.0](https://github.com/DataMini/asktable-python/compare/v3.7.0...v3.8.0)
6+
7+
### Features
8+
9+
* **api:** api update ([#76](https://github.com/DataMini/asktable-python/issues/76)) ([22320de](https://github.com/DataMini/asktable-python/commit/22320de5b9feb14f210b75457bbcf5027d64ce0d))
10+
11+
12+
### Chores
13+
14+
* **internal:** codegen related update ([#78](https://github.com/DataMini/asktable-python/issues/78)) ([95a6640](https://github.com/DataMini/asktable-python/commit/95a66408ffbb0df6fc9a02ac9df930e85a70d39c))
15+
16+
17+
### Documentation
18+
19+
* **readme:** example snippet for client context manager ([#79](https://github.com/DataMini/asktable-python/issues/79)) ([88f2c1f](https://github.com/DataMini/asktable-python/commit/88f2c1ff1f5cd8773cbbdc5ca473d78c84b73f35))
20+
321
## 3.7.0 (2024-12-16)
422

523
Full Changelog: [v3.6.0...v3.7.0](https://github.com/DataMini/asktable-python/compare/v3.6.0...v3.7.0)

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,16 @@ client.with_options(http_client=DefaultHttpxClient(...))
361361

362362
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
363363

364+
```py
365+
from asktable import Asktable
366+
367+
with Asktable() as client:
368+
# make requests here
369+
...
370+
371+
# HTTP client is now closed
372+
```
373+
364374
## Versioning
365375

366376
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "asktable"
3-
version = "3.7.0"
3+
version = "3.8.0"
44
description = "The official Python library for the asktable API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/asktable/_client.py

Lines changed: 153 additions & 130 deletions
Large diffs are not rendered by default.

src/asktable/_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. See CONTRIBUTING.md for details.
22

33
__title__ = "asktable"
4-
__version__ = "3.7.0" # x-release-please-version
4+
__version__ = "3.8.0" # x-release-please-version

src/asktable/resources/sys/sys.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,16 @@
22

33
from __future__ import annotations
44

5-
from .projects import (
5+
from ..._compat import cached_property
6+
from ..._resource import SyncAPIResource, AsyncAPIResource
7+
from .projects.projects import (
68
ProjectsResource,
79
AsyncProjectsResource,
810
ProjectsResourceWithRawResponse,
911
AsyncProjectsResourceWithRawResponse,
1012
ProjectsResourceWithStreamingResponse,
1113
AsyncProjectsResourceWithStreamingResponse,
1214
)
13-
from ..._compat import cached_property
14-
from ..._resource import SyncAPIResource, AsyncAPIResource
15-
from .projects.projects import ProjectsResource, AsyncProjectsResource
1615

1716
__all__ = ["SysResource", "AsyncSysResource"]
1817

src/asktable/types/sys/model_group.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,12 @@
88

99

1010
class ModelGroup(BaseModel):
11+
id: str
12+
"""模型组 ID"""
13+
14+
agent_model: str
15+
"""Agent 模型"""
16+
1117
image_models: List[str]
1218
"""图像模型列表"""
1319

0 commit comments

Comments
 (0)