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

Doesn't work with DeepSeek: UnprocessableEntityError: Failed to deserialize the JSON body into the target type #170

Closed
brucevoin opened this issue Oct 8, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@brucevoin
Copy link

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

@ErikBjare
Copy link
Owner

Huh, I've never seen this before. What triggered it for you?

@brucevoin
Copy link
Author

Huh, I've never seen this before. What triggered it for you?

Maybe the reason is I used deepseek api.

@ErikBjare
Copy link
Owner

Probably, I will investigate.

@ErikBjare ErikBjare added the bug Something isn't working label Oct 9, 2024
@ErikBjare ErikBjare changed the title [bug] penai.UnprocessableEntityError: Failed to deserialize the JSON body into the target type Doesn't work with DeepSeek: UnprocessableEntityError: Failed to deserialize the JSON body into the target type Oct 9, 2024
@ErikBjare
Copy link
Owner

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.

@ErikBjare
Copy link
Owner

ErikBjare commented Oct 9, 2024

I started working on proper support for DeepSeek in #180

@ErikBjare
Copy link
Owner

Same issue for groq apparently, working on a fix in: #231

@ErikBjare
Copy link
Owner

Fixed in #180

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

No branches or pull requests

2 participants