{"detail":"Extra parameters ['safe_prompt'] are not allowed when extra-parameters is not set or set to be 'error'. Set extra-parameters to 'pass-through' to pass to the model."}

Prasenjit 5 Reputation points
2024-10-30T10:36:07+00:00

Hi,

I have a working code, it suddenly getting following exception:

httpx.HTTPStatusError: Error response 400 while fetching https://mistral-nemo-iggff.swedencentral.models.ai.azure.com/chat/completions: {"detail":"Extra parameters ['safe_prompt'] are not allowed when extra-parameters is not set or set to be 'error'. Set extra-parameters to 'pass-through' to pass to the model."}

I am using langchain ChatMistralAI to initiate the connection. How can I fix it? this code was working for last 15 days and no changes were deployed. suddenly I'm getting this issue.

Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,224 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.