Skip to content

feat: Anthropic + Mistral provider adapters - #25

Merged
NekomyaDev merged 8 commits into
mainfrom
feature/more-providers
Jul 29, 2026
Merged

NekomyaDev merged 8 commits into
mainfrom
feature/more-providers

Conversation

@NekomyaDev

Copy link
Copy Markdown
Owner

What

Provider breadth (roadmap v1.2): two new real providers in the Python runtime.

  • Mistral — OpenAI-compatible: https://api.mistral.ai/v1, key from MISTRAL_API_KEY
  • Anthropic — dedicated Messages API adapter (POST /v1/messages, x-api-key + anthropic-version: 2023-06-01, max_tokens: 4096), key from ANTHROPIC_API_KEY; same 429 backoff as the OpenAI-compatible path
  • Pricing table: mistral-small-latest, mistral-large-latest, claude-haiku-4-5, claude-sonnet-4-5
  • TS runtime guard now recognizes mimo/mistral/anthropic prefixes (was silently faking mimo: calls before the "real providers are Python-only" error)
  • Usage: model: "anthropic:claude-haiku-4-5" or NUDGE_PROVIDER=mistral

Test

Sandbox-verified with mocked HTTP: correct URLs, headers (x-api-key/anthropic-version vs Bearer), request bodies (max_tokens present), response parsing (content[].text, usage.input_tokens/output_tokens vs choices[].message.content), JSON-schema extraction on Anthropic output, and pricing math — all ✓

@NekomyaDev
NekomyaDev merged commit 401a0ed into main Jul 29, 2026
2 checks passed
@NekomyaDev
NekomyaDev deleted the feature/more-providers branch July 29, 2026 15:47
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