Releases: mozilla-ai/otari-sdk-python
Releases · mozilla-ai/otari-sdk-python
otari: v0.1.1
0.1.0
First feature-complete release of the Python SDK. The client is now generated from the otari gateway's OpenAPI spec and covers the full API surface (inference and control plane), with a hand-written ergonomic layer on top. Both synchronous (OtariClient) and asynchronous (AsyncOtariClient) clients are included.
Still pre-1.0 (alpha): minor releases may include breaking changes while the surface settles.
Added
- Full typed client core generated from the gateway OpenAPI spec, covering every endpoint: chat completions, responses, Anthropic-style messages, embeddings, moderations, rerank, models, and batches (#3).
- Control-plane management with ergonomic methods for keys, users, budgets, pricing, and usage, so self-hosted gateways can be administered directly from the SDK. The raw generated methods remain available as an escape hatch (#7).
count_tokens()on the sync and async clients, wrappingPOST /v1/messages/count_tokens. It counts the input tokens an Anthropic-style/messagesrequest would consume without generating a response, and returns a typedCountTokensResponse(#10).- Typed responses across inference (
ChatCompletion, embeddings, rerank, moderation, models) and streaming support for chat, messages, and responses.
Documentation
- Added
AGENTS.md/CLAUDE.mdagent guide and refreshed the README with current usage (#6).
Install
pip install otari==0.1.0Full changelog: 0.0.3...0.1.0
0.0.3
0.0.2
What's Changed
- Align with modernized TS SDK: hosted-gateway default, OTARI_AI_TOKEN, logo by @khaledosman in #1
New Contributors
- @khaledosman made their first contribution in #1
Full Changelog: 0.0.1...0.0.2
0.0.1
Full Changelog: https://github.com/mozilla-ai/otari-sdk-python/commits/0.0.1