markjamesm / MistralSharp

Unofficial .NET SDK for the Mistral AI platform.
https://www.nuget.org/packages/MistralSharp
MIT License
14 stars 2 forks source link

Renamed SafeMode to SafePrompt #7

Closed frbar closed 8 months ago

frbar commented 8 months ago

Mistral REST API has been made stricter and now rejects extra/unknown parameters, which causes ChatRequest calls to fails as they are done with a SafeMode parameter, but API expects a SafePrompt one. There was a typo in the original Mistral documentation.

Read here: https://discord.com/channels/1144547040454508606/1184444810279522374/1195108690353717369

This change fixes the API call and we are no longer getting a 422 Unprocessable Entity.