Skip to content
Open
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
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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'

Expand All @@ -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());

Expand All @@ -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'

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-doctor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.8.0-alpha.2"
".": "0.8.0-alpha.3"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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 = "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"
Expand Down
2 changes: 1 addition & 1 deletion src/ogx_client/_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__ = "ogx_client"
__version__ = "0.8.0-alpha.2" # x-release-please-version
__version__ = "0.8.0-alpha.3" # x-release-please-version
3 changes: 3 additions & 0 deletions src/ogx_client/types/response_compact_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'."""

Expand Down
3 changes: 3 additions & 0 deletions src/ogx_client/types/response_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'."""

Expand Down
9 changes: 8 additions & 1 deletion src/ogx_client/types/response_list_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'."""

Expand Down Expand Up @@ -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."""
9 changes: 8 additions & 1 deletion src/ogx_client/types/response_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'."""

Expand Down Expand Up @@ -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."""
6 changes: 6 additions & 0 deletions tests/api_resources/test_responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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={
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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={
Expand Down
Loading