Skip to content

Regenerate SDK client core from Otari OpenAPI spec - #41

Merged
njbrake merged 1 commit into
mainfrom
sdk-codegen/client-core
Aug 21, 2026
Merged

njbrake merged 1 commit into
mainfrom
sdk-codegen/client-core

Conversation

@njbrake

@njbrake njbrake commented Aug 21, 2026 •

Copy link
Copy Markdown
Contributor

Automated regeneration of the generated typed client core (all
endpoints) from the Otari OpenAPI spec. The hand-written shell
(streaming, error mapping, ergonomic methods) is unaffected.

Source: mozilla-ai/otari@0e2634c
Generated by .github/workflows/otari-sdk-codegen.yml.

@njbrake
njbrake force-pushed the sdk-codegen/client-core branch 3 times, most recently from 0c660ad to f2464bb Compare August 21, 2026 21:36
@njbrake
njbrake force-pushed the sdk-codegen/client-core branch from f2464bb to b5da506 Compare August 21, 2026 22:09
@njbrake
njbrake merged commit c14fe68 into main Aug 21, 2026
@njbrake
njbrake deleted the sdk-codegen/client-core branch August 21, 2026 22:09
peteski22 pushed a commit to shoemoney/otari-sdk-python that referenced this pull request Sep 25, 2026
The gateway is OpenAI-compatible, so upstream provider errors arrive as
{"error": {"message": "..."}}. extract_detail() pulled the "error" key but
never unwrapped the nested dict, so callers got a Python repr string like
"{'message': 'context length exceeded'}" instead of the actual message.

Mirrors the fix already shipped in the sibling SDKs: otari-sdk-ts's
detailFromObject() (PR mozilla-ai#41, closing mozilla-ai#40) and otari-sdk-rust's
extract_detail(), which already documents this exact shape. Brings Python
in line with both.
peteski22 pushed a commit to shoemoney/otari-sdk-python that referenced this pull request Sep 25, 2026
The gateway is OpenAI-compatible, so upstream provider errors arrive as
{"error": {"message": "..."}}. extract_detail() pulled the "error" key but
never unwrapped the nested dict, so callers got a Python repr string like
"{'message': 'context length exceeded'}" instead of the actual message.

Mirrors the fix already shipped in the sibling SDKs: otari-sdk-ts's
detailFromObject() (PR mozilla-ai#41, closing mozilla-ai#40) and otari-sdk-rust's
extract_detail(), which already documents this exact shape. Brings Python
in line with both.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant