Skip to content

Support Mistral API call

Compare
Choose a tag to compare
@Onigam Onigam released this 17 Jan 11:09
· 13 commits to main since this release

Allow to set Mistral AI API calls by
removing the presence_penalty parameter from API calls that cause
this issue :

response: undefined, failed to send message to openai: Error: OpenAI error 422: {"object":"error","message":"{"detail":[{"type":"extra_forbidden","loc":["body","presence_penalty"],"msg":"Extra inputs are not permitted","input":1,"url":"[https://errors.pydantic.dev/2.5/v/extra_forbidden](https://errors.pydantic.dev/2.5/v/extra_forbidden/)"}]}","type":"internal_error_proxy","param":null,"code":"1000"}, backtrace: Error: OpenAI error 422: {"object":"error","message":"{"detail":[{"type":"extra_forbidden","loc":["body","presence_penalty"],"msg":"Extra inputs are not permitted","input":1,"url":"[https://errors.pydantic.dev/2.5/v/extra_forbidden](https://errors.pydantic.dev/2.5/v/extra_forbidden/)"}]}","type":"internal_error_proxy","param":null,"code":"1000"}