-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Doesn't work with DeepSeek: UnprocessableEntityError: Failed to deserialize the JSON body into the target type
#170
Comments
Huh, I've never seen this before. What triggered it for you? |
Maybe the reason is I used deepseek api. |
Probably, I will investigate. |
UnprocessableEntityError: Failed to deserialize the JSON body into the target type
Managed to reproduce, looks like it doesn't support how we/openai/anthropic deal with message attachments like files/images: cline/cline#230 I could work around this, but I'd rather wait for them to fix their API. |
I started working on proper support for DeepSeek in #180 |
Same issue for groq apparently, working on a fix in: #231 |
Fixed in #180 |
File "/home/brucevoin/.local/share/pipx/venvs/gptme/lib/python3.12/site-packages/openai/_base_client.py", line 1052, in _request
raise self._make_status_error_from_response(err.response) from None
openai.UnprocessableEntityError: Failed to deserialize the JSON body into the target type: messages[3]: invalid type: sequence, expected a string at line 1 column 27074
The text was updated successfully, but these errors were encountered: