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

SafeMode should be SafePrompt #1

Closed
jcmag opened this issue Jan 15, 2024 · 2 comments
Closed

SafeMode should be SafePrompt #1

jcmag opened this issue Jan 15, 2024 · 2 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@jcmag
Copy link

jcmag commented Jan 15, 2024

Hi,

I had this error when using your library:

"{"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"}]}"

and I've fixed it by changing SafeMode to SafePrompt in ChatCompletionRequest.cs :

[JsonPropertyName("safe_prompt")]
public bool SafePrompt { get; set; }

(see: https://docs.mistral.ai/api/#operation/createChatCompletion)

@tghamm tghamm added bug Something isn't working good first issue Good for newcomers labels Jan 16, 2024
tghamm added a commit that referenced this issue Jan 16, 2024
@tghamm
Copy link
Owner

tghamm commented Jan 16, 2024

@jcmag thanks for bringing this to my attention. There is a new release out that addresses the issue and includes a more comprehensive integration test suite to ensure other parameters are working as expected.

@tghamm tghamm closed this as completed Jan 16, 2024
@jcmag
Copy link
Author

jcmag commented Jan 16, 2024

perfect, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants