Skip to content

feat: add Mistral AI model support to OpenAIChatCompletionClient#7474

Closed
nuglifeleoji wants to merge 2 commits intomicrosoft:mainfrom
nuglifeleoji:feat/mistral-model-support
Closed

feat: add Mistral AI model support to OpenAIChatCompletionClient#7474
nuglifeleoji wants to merge 2 commits intomicrosoft:mainfrom
nuglifeleoji:feat/mistral-model-support

Conversation

@nuglifeleoji
Copy link
Copy Markdown

Adds Mistral AI model support following the same pattern as Gemini, Claude, and Llama.

Changes:

  • Add Mistral model entries to _MODEL_POINTERS, _MODEL_INFO, and _MODEL_TOKEN_LIMITS in _model_info.py
  • Add MISTRAL_API_BASE_URL constant (https://api.mistral.ai/v1/)
  • Auto-detect Mistral models by prefix (mistral-, codestral-, open-mistral-) and set base URL + API key from MISTRAL_API_KEY env var

Models added: mistral-large-latest, mistral-small-latest, codestral-latest, mistral-nemo

Closes #6151
Closes #6147

@itzsahil-prog
Copy link
Copy Markdown

❤️❤️

@nuglifeleoji nuglifeleoji closed this by deleting the head repository Apr 2, 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.

Mistral support through OpenAIChatCompletionClient. Update of @langchain/mistralai necessary for using Mistral API in Autogen Studio

2 participants