Welcome to Portkey Forum

Updated last year

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.
Useful resources
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?
v
e
3 comments
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.

Mistral-AI discord message link: https://discord.com/channels/1144547040454508606/1184444810279522374/1195108690353717369

Screenshot for the announcement attached
Attachment
Screenshot_2024-01-21_at_15.55.12.png
@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..!!
Yes, it works now, thank you!
Add a reply
Sign up and join the conversation on Discord