Okapi Okapi

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/completions
  • body 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.

Mistral, Announcement

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

  1. devstral-2512Model retirement Stopped working
  2. magistral-medium-2509Model retirement Stopped working
  3. magistral-small-2509Model retirement Stopped working
  4. mistral-small-2506Model retirement Stopped working
  5. open-mistral-nemo-2407Model retirement Stopped working
  6. mistral-medium-2505Model retirement Stopped working
  7. mistral-medium-2508Model retirement Stopped working
  8. labs-leanstral-1-5Model retirement Stopped working
  9. mistral-ocr-4-0Model retirement Stopped working
  10. 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.

Add to GitHub

Get notifications

Subscribe to Mistral

Hear about each breaking change Mistral announces, in your feed reader, calendar or Slack.

1What to follow

Provider
  • Mistral

2Where to get it

/breaking-changes/feed.xml

Paste it into Feedly, Inoreader, NetNewsWire or any reader. New changes show up as they're announced.