
mistral-ai
#13910000
model_selection_error
Invalid model: The specified model is not recognized or unavailable. Please verify the model name.
This error has been identified and solved.
Reason
The `` status error in the Mistral AI API, specifically the "Invalid model" error for a model like mistral-medium
, is typically due to the following reasons:
Invalid Model Specification
The model specified (mistral-medium
) may not be recognized or supported by the API. This could be because the model name is incorrect, misspelled, or not listed in the permitted models as outlined in the API documentation.
Configuration or Syntax Error
The request may contain invalid syntax or configuration, such as incorrect headers, missing or incorrect API keys, or other malformed request parameters. This can lead to a "Bad Request" response from the server.
Rate Limiting or Other Constraints
Although less likely, it could also be due to hitting rate limits or other constraints imposed by the API, though this is more commonly associated with rate limiting errors rather than an invalid model error.
Solution
To resolve the "Invalid model" error in the Mistral AI API, you should take the following steps:
Ensure you are using a valid and recognized model name as specified in the Mistral API documentation. Here are some key actions to consider:
Verify Model Name: Check the API documentation to confirm that the model name
mistral-medium
is correct and supported.Check API Documentation: Refer to the permitted models list to ensure the specified model is available.
Review Request Configuration: Make sure the request contains the correct headers, API keys, and other required parameters without any syntax errors.
Contact Support: If the issue persists, contact Mistral AI support for further assistance, as they can provide more detailed insights into your specific case.
Suggested Links
https://cheatsheet.md/chatgpt-cheatsheet/openai-api-error-axioserror-request-failed-status-code-400 https://github.com/mistralai/platform-docs-public/issues/7 https://www.restack.io/p/mistral-inference-answer-rate-limits-cat-ai https://community.make.com/t/400-invalid-model/59048 https://discuss.huggingface.co/t/400-client-error-in-inference-api-for-sentence-similarity-task/34784