Troubleshooting Mistral API response with extra forbidden error
Troubleshooting Mistral API response with extra forbidden error
At a glance
The community member was experiencing an issue with the Mistral API, receiving an error message indicating that an "unsupported parameter" was present in their request. The comments revealed that Mistral had recently made changes to their API, including renaming the "safe_mode" parameter to "safe_prompt", which caused validation issues. A community member provided a fix for this issue and confirmed that it now works.
When trying Mistral API, I am getting this response: {"detail":[{"type":"extra_forbidden","loc":["body","safe_mode"],"msg":"Extra inputs are not permitted","input":false,"url":"https://errors.pydantic.dev/2.5/v/extra_forbidden"}]} I am inside the Portkey dashboard. Apparently, I have an "unsupported parameter" in my request, but how can I understand which one?
So mistral released some changes which included changing their safe_mode param to safe_prompt which caused issues on their end as the validation was not properly handled. Here is their official discord announcement about this issue. I will push a quick fix for this on our end too.
@ekevu. - We have pushed a change to address the new mistral-ai params. Can you please try once again and let us know if this works now. Thanks for reporting the issue..!!