Skip to content

Commit

Permalink
Fix flag
Browse files Browse the repository at this point in the history
  • Loading branch information
lerela committed Jan 11, 2024
1 parent 3c62001 commit 49fb011
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/platform/02-client.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ curl --location "https://api.mistral.ai/v1/chat/completions" \
</TabItem>
</Tabs>

We allow users to provide a custom system prompt (see [API reference](../../api)). A convenient `safe_mode` flag allow to force chat completion to be moderated against sensitive content (see [Guardrailing](../guardrailing)).
We allow users to provide a custom system prompt (see [API reference](../../api)). A convenient `safe_prompt` flag allow to force chat completion to be moderated against sensitive content (see [Guardrailing](../guardrailing)).

## Embeddings

Expand Down
4 changes: 2 additions & 2 deletions docs/platform/04-guardrailing.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ curl --location "https://api.mistral.ai/v1/chat/completions" \
"content": "What is the best French cheese?"
}
],
"safe_mode": true
"safe_prompt": true
}'
```
</TabItem>
</Tabs>

Toggling `safe_mode` will prepend your messages with the following system prompt:
Toggling `safe_prompt` will prepend your messages with the following system prompt:
```
Always assist with care, respect, and truth. Respond with utmost utility yet securely. Avoid harmful, unethical, prejudiced, or negative content. Ensure replies promote fairness and positivity.
```
Expand Down
2 changes: 1 addition & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ components:
nullable: true
description: |
Whether to stream back partial progress. If set, tokens will be sent as data-only server-sent events as they become available, with the stream terminated by a data: [DONE] message. Otherwise, the server will hold the request open until the timeout or until completion, with the response containing the full result as JSON.
safe_mode:
safe_prompt:
type: boolean
default: false
description: |
Expand Down

0 comments on commit 49fb011

Please sign in to comment.