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

Error Extra inputs are not permitted on body.safe_prompt #65

Open
aHenryJard opened this issue Jan 2, 2025 · 1 comment
Open

Error Extra inputs are not permitted on body.safe_prompt #65

aHenryJard opened this issue Jan 2, 2025 · 1 comment

Comments

@aHenryJard
Copy link

aHenryJard commented Jan 2, 2025

Hello, I'm upgrading the client-ts dependency on my project from 0.5.0 to 1.3.5 and after some code changes to chat.stream usage I get this error using a dedicated ai server:

'type': 'extra_forbidden', 'loc': ('body', 'safe_prompt'), 'msg': 'Extra inputs are not permitted'

It seems that the typescript client is sending always safe_prompt parameter, how can I prevent the client to add 'safe_prompt' to the body ?

As far as I see in Mistral platform documentation it should be optionnal to have 'safe_prompt' in requests.

If you need more information, the code is open source and here OpenCTI-Platform/opencti#9482

@GaspardBT
Copy link
Collaborator

Hi 👋
Thanks for opening this issue, this is a misconfiguration on our side, we are going to release a fix soon.

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

No branches or pull requests

2 participants