Skip to content

Regenerate SDK client core from Otari OpenAPI spec - #40

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@c2dfa30
Generated by .github/workflows/otari-sdk-codegen.yml.

@njbrake
njbrake force-pushed the sdk-codegen/client-core branch from bb92b03 to 2e31456 Compare August 21, 2026 15:03
@njbrake
njbrake merged commit c9cd91b into main Aug 21, 2026
3 checks passed
@njbrake
njbrake deleted the sdk-codegen/client-core branch August 21, 2026 15:03
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.

2 participants