Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "3.7.0"
".": "3.8.0"
}
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 90
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-f4eb4b4f84901ac48b5fbfbde2712cf15833c5824a01aa2e164524465819a2e8.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/datamini%2Fasktable-9685a6d1ce0077c478727502e935941fe3e5740d45549e3693d29941b462d31a.yml
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Changelog

## 3.8.0 (2024-12-17)

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

### Features

* **api:** api update ([#76](https://github.com/DataMini/asktable-python/issues/76)) ([22320de](https://github.com/DataMini/asktable-python/commit/22320de5b9feb14f210b75457bbcf5027d64ce0d))


### Chores

* **internal:** codegen related update ([#78](https://github.com/DataMini/asktable-python/issues/78)) ([95a6640](https://github.com/DataMini/asktable-python/commit/95a66408ffbb0df6fc9a02ac9df930e85a70d39c))


### Documentation

* **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))

## 3.7.0 (2024-12-16)

Full Changelog: [v3.6.0...v3.7.0](https://github.com/DataMini/asktable-python/compare/v3.6.0...v3.7.0)
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,16 @@ client.with_options(http_client=DefaultHttpxClient(...))

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.

```py
from asktable import Asktable

with Asktable() as client:
# make requests here
...

# HTTP client is now closed
```

## Versioning

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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "asktable"
version = "3.7.0"
version = "3.8.0"
description = "The official Python library for the asktable API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
283 changes: 153 additions & 130 deletions src/asktable/_client.py

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/asktable/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "asktable"
__version__ = "3.7.0" # x-release-please-version
__version__ = "3.8.0" # x-release-please-version
7 changes: 3 additions & 4 deletions src/asktable/resources/sys/sys.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,16 @@

from __future__ import annotations

from .projects import (
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from .projects.projects import (
ProjectsResource,
AsyncProjectsResource,
ProjectsResourceWithRawResponse,
AsyncProjectsResourceWithRawResponse,
ProjectsResourceWithStreamingResponse,
AsyncProjectsResourceWithStreamingResponse,
)
from ..._compat import cached_property
from ..._resource import SyncAPIResource, AsyncAPIResource
from .projects.projects import ProjectsResource, AsyncProjectsResource

__all__ = ["SysResource", "AsyncSysResource"]

Expand Down
6 changes: 6 additions & 0 deletions src/asktable/types/sys/model_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@


class ModelGroup(BaseModel):
id: str
"""模型组 ID"""

agent_model: str
"""Agent 模型"""

image_models: List[str]
"""图像模型列表"""

Expand Down