Mistral
safe_prompt body parameter removal on POST /v1/chat/completions
Deprecated, no dateSubscribe to MistralShare
Mistral deprecated the body parameter safe_prompt on POST /v1/chat/completions without a shutdown date. Requests relying on this parameter will eventually fail once it is removed. Update your chat completion payloads to avoid interruptions when the parameter is turned off.
Calls it hits
POST /v1/chat/completionsbody parameter safe_prompt
What to use instead of these calls
Use Custom Guardrails in the request instead of safe_prompt.
In Mistral's words
safe_prompt is deprecated. We recommend using Custom Guardrails instead, which provides more control over moderation categories and thresholds directly in your API requests.
Facts
- API
- Mistral
api.mistral.ai - Kind
- Parameter removal
- Takes effect
- No date given yet
- Calls after that day
- Fail
- Source
- Announcement
- Last updated
- Verified
- , against Mistral's own pages
Questions
When does this change take effect?
Mistral deprecated POST /v1/chat/completions, body parameter safe_prompt without giving a shutdown date yet.
Do these calls still work?
Yes, they still work: Mistral has not given a shutdown date yet.
How do I find the calls this hits in my code?
Okapi reads your repository, finds the calls this change hits and opens a pull request with the fix. It never commits to your branches: every change comes as a pull request you review.
More from Mistral 10
-
devstral-2512Model retirement Stopped working -
magistral-medium-2509Model retirement Stopped working -
magistral-small-2509Model retirement Stopped working -
mistral-small-2506Model retirement Stopped working -
open-mistral-nemo-2407Model retirement Stopped working -
mistral-medium-2505Model retirement Stopped working -
mistral-medium-2508Model retirement Stopped working -
labs-leanstral-1-5Model retirement Stopped working -
mistral-ocr-4-0Model retirement Stopped working -
zai-glm-5-2Model retirement Stopped working
Is your code calling this?
Okapi finds the calls this change hits in your repo and opens the pull request with the fix.