Skip to content

chore: add direct Mistral provider#343

Closed
EwenQuim wants to merge 1 commit into
charmbracelet:mainfrom
EwenQuim:feat/add-mistral-provider
Closed

chore: add direct Mistral provider#343
EwenQuim wants to merge 1 commit into
charmbracelet:mainfrom
EwenQuim:feat/add-mistral-provider

Conversation

@EwenQuim

Copy link
Copy Markdown

Summary

  • Adds internal/providers/configs/mistral.json as a new first-class provider hitting https://api.mistral.ai/v1 (uses $MISTRAL_API_KEY)
  • Registers it in providers.go alongside the other main providers
  • 11 models included:
    • Mistral Medium 3.5 (default large, reasoning, 256k ctx, $1.5/$7.5/1M)
    • Magistral Medium 1.2 and Magistral Small (reasoning models, $2/$5 and $0.5/$1.5)
    • Mistral Large 3 ($0.5/$1.5)
    • Devstral 2 (agentic coding, 256k ctx, $0.4/$2) and Devstral Small 2
    • Codestral (code completion, 32k ctx, $0.3/$0.9)
    • Mistral Small 4 (default small, multimodal, $0.1/$0.3)
    • Ministral 14B / 8B / 3B (edge models)

Test plan

  • go build ./... passes
  • go test ./internal/providers/... — 37 tests pass
  • Verify with a live $MISTRAL_API_KEY that model IDs resolve correctly

Adds mistral.json with 11 models covering Mistral Medium 3.5,
Magistral (reasoning), Devstral 2, Codestral, Mistral Large/Small,
and Ministral 3B/8B/14B hitting api.mistral.ai directly.
@EwenQuim EwenQuim requested a review from andreynering as a code owner June 11, 2026 12:13
@EwenQuim

Copy link
Copy Markdown
Author

Closing in favor of #332 which has a better implementation with a generator script and canonical -latest model IDs.

@EwenQuim EwenQuim closed this Jun 11, 2026
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