Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace safe_mode by safe_prompt #1

Merged
merged 1 commit into from
Jan 12, 2024

Conversation

anthony-robin
Copy link

safe_mode attribute seems to have been replaced by safe_prompt in the last Mistral API version which results in a crash response:

API Error: 422 - {"object":"error","message":"{\"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\"}]}","type":"internal_error_proxy","param":null,"code":"1000"}

Replacing by safe_prompt fix the issue.

Capture d’écran 2024-01-12 à 10 27 20

Co-Authored-By @unplugandplay

`safe_mode` attribute seems to have been replaced by `safe_prompt` in the last Mistral API version
which results in a crash response:

```
API Error: 422 - {"object":"error","message":"{\"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\"}]}","type":"internal_error_proxy","param":null,"code":"1000"}
```

Replacing by `safe_prompt` fix the issue.

Co-Authored-By @unplugandplay
@fsndzomga
Copy link
Owner

thanks for noticing that and for the feedback provided !

@fsndzomga fsndzomga merged commit 188bb60 into fsndzomga:master Jan 12, 2024
1 check passed
@anthony-robin anthony-robin deleted the fix-safe-mode branch January 12, 2024 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants