From f15afea1e0ad105ce8d41a87225ae77b2ebd2848 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 19:05:52 +0000 Subject: [PATCH 1/7] ci: pin GitHub Actions to commit SHAs Pin all GitHub Actions referenced in generated workflows (both first-party `actions/*` and third-party) to immutable commit SHAs. Updating pinned actions is now a deliberate codegen-side bump rather than implicit on every workflow run. --- .github/workflows/ci.yml | 14 +++++++------- .github/workflows/publish-pypi.yml | 4 ++-- .github/workflows/release-doctor.yml | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) 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: | From ae7c048c9bbcb030fa60a922fbaf3fd344992f1f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 12 May 2026 21:01:15 +0000 Subject: [PATCH 2/7] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3b60db3f..1896c8cb 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-da9f4a2a9ea4c9b29d7e2932c20bf40a520d7e877cec498f611026f4da2b3f4c.yml +openapi_spec_hash: 2d16aeb347ee748eb49f85e63737a6ff config_hash: 3d294831d7b8066ba59a8934b980a943 From 1b56f8028b4dd8f5d2b13e8fa8d32ec63654cb9e Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 15:41:29 +0000 Subject: [PATCH 3/7] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 1896c8cb..a15513f7 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-da9f4a2a9ea4c9b29d7e2932c20bf40a520d7e877cec498f611026f4da2b3f4c.yml -openapi_spec_hash: 2d16aeb347ee748eb49f85e63737a6ff +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack/llama-stack-client-f979bbe38d35a5e62f055e5b8e7b483b5a3ebfcad3e1ddaa9496419188b9ea21.yml +openapi_spec_hash: 511d270343a6d804726d2fbe8cb21a1e config_hash: 3d294831d7b8066ba59a8934b980a943 From 87ef16cb554b90f9cce1434296fb280ac7018bb1 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 13 May 2026 16:48:24 +0000 Subject: [PATCH 4/7] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a15513f7..468940cb 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-f979bbe38d35a5e62f055e5b8e7b483b5a3ebfcad3e1ddaa9496419188b9ea21.yml -openapi_spec_hash: 511d270343a6d804726d2fbe8cb21a1e +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack/llama-stack-client-abc9855d9c9fa99a55758fd03a3bb2e8d3c6c504fa7310c2ce2da67b10e4c456.yml +openapi_spec_hash: 8760889d3a8fc396fa2e191546258839 config_hash: 3d294831d7b8066ba59a8934b980a943 From 361810111d9613b5b8f91a8f7f7d63acdb293a7b Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 20 May 2026 15:59:00 +0000 Subject: [PATCH 5/7] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 468940cb..439432ca 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-abc9855d9c9fa99a55758fd03a3bb2e8d3c6c504fa7310c2ce2da67b10e4c456.yml -openapi_spec_hash: 8760889d3a8fc396fa2e191546258839 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack/llama-stack-client-998ebd3935c1587121c99547484f267eaf2a002446a76c53171ba2d65eca1aec.yml +openapi_spec_hash: 18f3e38a067d66df2f6da3033c31be47 config_hash: 3d294831d7b8066ba59a8934b980a943 From aa50fe9861d4642231fc4ea2d3925220b7bc25ac Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 13:28:45 +0000 Subject: [PATCH 6/7] fix(api): fix field-level schema mismatches in Responses models --- .stats.yml | 4 ++-- src/ogx_client/types/response_compact_params.py | 3 +++ src/ogx_client/types/response_create_params.py | 3 +++ src/ogx_client/types/response_list_response.py | 9 ++++++++- src/ogx_client/types/response_object.py | 9 ++++++++- tests/api_resources/test_responses.py | 6 ++++++ 6 files changed, 30 insertions(+), 4 deletions(-) diff --git a/.stats.yml b/.stats.yml index 439432ca..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-998ebd3935c1587121c99547484f267eaf2a002446a76c53171ba2d65eca1aec.yml -openapi_spec_hash: 18f3e38a067d66df2f6da3033c31be47 +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/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={ From c5735585c9313cdc432eccd16c7d053c486c2747 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 21 May 2026 13:29:33 +0000 Subject: [PATCH 7/7] release: 0.8.0-alpha.3 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/ogx_client/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) 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/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