diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d7d6fab0..f8e72796 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,10 +22,10 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/llama-stack-client-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata') steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 with: version: '0.10.2' @@ -44,10 +44,10 @@ jobs: id-token: write runs-on: ${{ github.repository == 'stainless-sdks/llama-stack-client-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 with: version: '0.10.2' @@ -62,7 +62,7 @@ jobs: github.repository == 'stainless-sdks/llama-stack-client-python' && !startsWith(github.ref, 'refs/heads/stl/') id: github-oidc - uses: actions/github-script@v8 + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0 with: script: core.setOutput('github_token', await core.getIDToken()); @@ -82,10 +82,10 @@ jobs: runs-on: ${{ github.repository == 'stainless-sdks/llama-stack-client-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }} if: github.event_name == 'push' || github.event.pull_request.head.repo.fork steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 with: version: '0.10.2' diff --git a/.github/workflows/publish-pypi.yml b/.github/workflows/publish-pypi.yml index 3aa82510..5b9d6f7a 100644 --- a/.github/workflows/publish-pypi.yml +++ b/.github/workflows/publish-pypi.yml @@ -14,10 +14,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Install uv - uses: astral-sh/setup-uv@v5 + uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 with: version: '0.9.13' diff --git a/.github/workflows/release-doctor.yml b/.github/workflows/release-doctor.yml index 723b9921..49eacef7 100644 --- a/.github/workflows/release-doctor.yml +++ b/.github/workflows/release-doctor.yml @@ -12,7 +12,7 @@ jobs: if: github.repository == 'ogx-ai/ogx-client-python' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next') steps: - - uses: actions/checkout@v6 + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - name: Check release environment run: | diff --git a/.release-please-manifest.json b/.release-please-manifest.json index eddc42f5..6a325780 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.8.0-alpha.2" + ".": "0.8.0-alpha.3" } diff --git a/.stats.yml b/.stats.yml index 3b60db3f..e70bb537 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 67 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack/llama-stack-client-0a1c852eda740c79412d2aa642e24f7ed057e69e472885e8fb9463e3d5515b55.yml -openapi_spec_hash: 36c10a2fd3d75032e220697bd5b30b7f +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack/llama-stack-client-d956e9a3409ef288c46a07874abb6a0aafe350e0490ac02a3d25d795769a29e3.yml +openapi_spec_hash: 01119701169c1cba088e577d4b13e464 config_hash: 3d294831d7b8066ba59a8934b980a943 diff --git a/CHANGELOG.md b/CHANGELOG.md index 438ee8ae..6e1ecd59 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.8.0-alpha.3 (2026-05-21) + +Full Changelog: [v0.8.0-alpha.2...v0.8.0-alpha.3](https://github.com/ogx-ai/ogx-client-python/compare/v0.8.0-alpha.2...v0.8.0-alpha.3) + +### Bug Fixes + +* **api:** fix field-level schema mismatches in Responses models ([aa50fe9](https://github.com/ogx-ai/ogx-client-python/commit/aa50fe9861d4642231fc4ea2d3925220b7bc25ac)) + ## 0.8.0-alpha.2 (2026-05-12) Full Changelog: [v0.8.0-alpha.1...v0.8.0-alpha.2](https://github.com/ogx-ai/ogx-client-python/compare/v0.8.0-alpha.1...v0.8.0-alpha.2) diff --git a/pyproject.toml b/pyproject.toml index f43aa290..550cb318 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "ogx_client" -version = "0.8.0-alpha.2" +version = "0.8.0-alpha.3" description = "The official Python library for the ogx-client API" dynamic = ["readme"] license = "MIT" diff --git a/src/ogx_client/_version.py b/src/ogx_client/_version.py index df143fc8..01bec4e5 100644 --- a/src/ogx_client/_version.py +++ b/src/ogx_client/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "ogx_client" -__version__ = "0.8.0-alpha.2" # x-release-please-version +__version__ = "0.8.0-alpha.3" # x-release-please-version diff --git a/src/ogx_client/types/response_compact_params.py b/src/ogx_client/types/response_compact_params.py index b6e556b9..7ebb4a27 100644 --- a/src/ogx_client/types/response_compact_params.py +++ b/src/ogx_client/types/response_compact_params.py @@ -628,6 +628,9 @@ class Reasoning(TypedDict, total=False): effort: Optional[Literal["none", "minimal", "low", "medium", "high", "xhigh"]] + generate_summary: Optional[Literal["auto", "concise", "detailed"]] + """Deprecated: use 'summary' instead.""" + summary: Optional[Literal["auto", "concise", "detailed"]] """Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.""" diff --git a/src/ogx_client/types/response_create_params.py b/src/ogx_client/types/response_create_params.py index 9b3bb911..c82674c0 100644 --- a/src/ogx_client/types/response_create_params.py +++ b/src/ogx_client/types/response_create_params.py @@ -784,6 +784,9 @@ class Reasoning(TypedDict, total=False): effort: Optional[Literal["none", "minimal", "low", "medium", "high", "xhigh"]] + generate_summary: Optional[Literal["auto", "concise", "detailed"]] + """Deprecated: use 'summary' instead.""" + summary: Optional[Literal["auto", "concise", "detailed"]] """Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.""" diff --git a/src/ogx_client/types/response_list_response.py b/src/ogx_client/types/response_list_response.py index f549154f..e01a88d8 100644 --- a/src/ogx_client/types/response_list_response.py +++ b/src/ogx_client/types/response_list_response.py @@ -1057,6 +1057,9 @@ class Reasoning(BaseModel): effort: Optional[Literal["none", "minimal", "low", "medium", "high", "xhigh"]] = None + generate_summary: Optional[Literal["auto", "concise", "detailed"]] = None + """Deprecated: use 'summary' instead.""" + summary: Optional[Literal["auto", "concise", "detailed"]] = None """Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.""" @@ -1373,7 +1376,11 @@ class ResponseListResponse(BaseModel): top_p: Optional[float] = None - truncation: Optional[str] = None + truncation: Optional[Literal["auto", "disabled"]] = None + """ + Controls how the service truncates input when it exceeds the model context + window. + """ usage: Optional[Usage] = None """Usage information for OpenAI response.""" diff --git a/src/ogx_client/types/response_object.py b/src/ogx_client/types/response_object.py index c9f1fd69..987a2892 100644 --- a/src/ogx_client/types/response_object.py +++ b/src/ogx_client/types/response_object.py @@ -536,6 +536,9 @@ class Reasoning(BaseModel): effort: Optional[Literal["none", "minimal", "low", "medium", "high", "xhigh"]] = None + generate_summary: Optional[Literal["auto", "concise", "detailed"]] = None + """Deprecated: use 'summary' instead.""" + summary: Optional[Literal["auto", "concise", "detailed"]] = None """Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.""" @@ -858,7 +861,11 @@ def output_text(self) -> str: top_p: Optional[float] = None - truncation: Optional[str] = None + truncation: Optional[Literal["auto", "disabled"]] = None + """ + Controls how the service truncates input when it exceeds the model context + window. + """ usage: Optional[Usage] = None """Usage information for OpenAI response.""" diff --git a/tests/api_resources/test_responses.py b/tests/api_resources/test_responses.py index a569aa45..d097478c 100644 --- a/tests/api_resources/test_responses.py +++ b/tests/api_resources/test_responses.py @@ -67,6 +67,7 @@ def test_method_create_with_all_params_overload_1(self, client: OgxClient) -> No prompt_cache_key="prompt_cache_key", reasoning={ "effort": "none", + "generate_summary": "auto", "summary": "auto", }, service_tier="auto", @@ -169,6 +170,7 @@ def test_method_create_with_all_params_overload_2(self, client: OgxClient) -> No prompt_cache_key="prompt_cache_key", reasoning={ "effort": "none", + "generate_summary": "auto", "summary": "auto", }, service_tier="auto", @@ -354,6 +356,7 @@ def test_method_compact_with_all_params(self, client: OgxClient) -> None: prompt_cache_key="prompt_cache_key", reasoning={ "effort": "none", + "generate_summary": "auto", "summary": "auto", }, text={ @@ -449,6 +452,7 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn prompt_cache_key="prompt_cache_key", reasoning={ "effort": "none", + "generate_summary": "auto", "summary": "auto", }, service_tier="auto", @@ -551,6 +555,7 @@ async def test_method_create_with_all_params_overload_2(self, async_client: Asyn prompt_cache_key="prompt_cache_key", reasoning={ "effort": "none", + "generate_summary": "auto", "summary": "auto", }, service_tier="auto", @@ -736,6 +741,7 @@ async def test_method_compact_with_all_params(self, async_client: AsyncOgxClient prompt_cache_key="prompt_cache_key", reasoning={ "effort": "none", + "generate_summary": "auto", "summary": "auto", }, text={