
mistral-ai
#10140
invalid_model_error
The specified model is invalid or unsupported. Please check the model name and try again.
This error has been identified and solved.
Reason
The `` status error in the Mistral AI API, specifically the "Invalid model: mistral-medium" error, is likely due to several possible reasons:
Invalid Model Name
The model name "mistral-medium" might not be a valid or recognized model by the Mistral AI API. The API only accepts requests for models that are explicitly listed in its documentation.
Configuration or Syntax Error
The request may contain invalid syntax or configuration, such as incorrect headers, API keys, or data payload, which the server cannot understand, leading to a "Bad Request" response.
Model Availability
The model "mistral-medium" may not be available or permitted for use in your specific context or account, as model availability can vary based on the user's permissions and the API's documentation.
Solution
To resolve the "Invalid model: mistral-medium" error in the Mistral AI API, you should take the following steps:
Verify the Model Name: Ensure that "mistral-medium" is a valid and supported model name according to Mistral AI's documentation.
Check Model Availability: Confirm that the model is available and permitted for use in your region and with your account permissions.
Review Request Configuration: Inspect the request for any syntax or configuration errors, including correct headers, API keys, and data payload.
Consult Documentation: Refer to Mistral AI's official documentation to find the list of permitted models and any specific requirements or constraints.
By addressing these points, you can identify and correct the issue causing the 400 status error. If the problem persists, contacting Mistral AI's support can provide further assistance.