-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: 'name' field on messages not working when using Mistral.AI's API #2748
Comments
A possible solution is to have a built-in model client for Mistral AI's API. It's a thin client that does a simple pop of the |
Thanks @ekzhu, for Mistral, they have their own library, like the Anthropic one, so would you see this using that library or the openai library?
|
I think using their library as an optional dependency makes sense. So when |
Okay, I've started creating a Mistral client model class. |
Yay, Mistral client class merged - please use |
Describe the bug
Mistral.AI's API is strict on what keys are allowed on the messages.
When running a GroupChat, the
name
key on each message is causing an exception when using the Mistral.AI API through the standard client:If the
name
key is removed from each message no exception is thrown.Mistral.AI API's documentation on message:
Creating this issue in relation to testing from PR #2635, specific messages 1 and 2
Would be good to have an endpoint that developers could use for Mistral.AI, and other non-OpenAI inference, where the
name
isn't accepted/used.On a side-note, my testing shows that the
name
field isn't being used for Ollama, LiteLLM+Ollama, or together.ai.Steps to reproduce
No response
Model Used
No response
Expected Behavior
No response
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: