mirror of
https://github.com/deepseek-ai/DeepSeek-V2.git
synced 2026-11-05 00:47:23 +00:00
[GH-ISSUE #52] Compatibility issues with the OpenAI Python client. #51
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
deepseek-ai/DeepSeek-V2#51
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @dennymao on GitHub (May 31, 2024).
Original GitHub issue: https://github.com/deepseek-ai/DeepSeek-V2/issues/52
server return http status code 422;
request:
{ "model": "deepseek-chat", "messages": [ { "role": "system", "content": "someting" }, { "role": "user", "content": [ { "type": "image_url", "image_url": { "url": "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAA............", "detail": "high" } }, { "type": "text", "text": "\\nGenerate code for a web page that looks exactly like this.\\n" } ] } ], "stream": true, "timeout": 600, "temperature": 0.0, "max_tokens": 4096 }@xyh0202 commented on GitHub (Jun 5, 2024):
"timeout" is not a valid request parameter for deepseek api. Please refer to API document https://platform.deepseek.com/api-docs/api/create-chat-completion/
@dennymao commented on GitHub (Jun 5, 2024):
I understand, but in the official DeepSeek example code, they use OpenAI's client: from openai import OpenAI. Therefore, I think DeepSeek should consider either fully supporting compatibility with OpenAI's client and API parameters, or creating its own proprietary one. It's not ideal to have a semi-compatible approach that appears to work but actually doesn't in practice. This is not elegant.