Skip to content

fix: use max_tokens instead of max_completion_tokens for DeepSeek com…#88

Open
xuchaoji wants to merge 1 commit into
ZhiYi-R:mainfrom
xuchaoji:main
Open

fix: use max_tokens instead of max_completion_tokens for DeepSeek com…#88
xuchaoji wants to merge 1 commit into
ZhiYi-R:mainfrom
xuchaoji:main

Conversation

@xuchaoji

Copy link
Copy Markdown

…patibility

DeepSeek API expects max_tokens in the request body, but ChatRequest.MaxTokens was serialized as max_completion_tokens (the OpenAI o-series field name). This caused DeepSeek to ignore or reject the token limit, leading to cryptic errors during long conversations with heavy tool use.

…patibility

DeepSeek API expects max_tokens in the request body, but ChatRequest.MaxTokens
was serialized as max_completion_tokens (the OpenAI o-series field name).
This caused DeepSeek to ignore or reject the token limit, leading to cryptic
errors during long conversations with heavy tool use.
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

Successfully merging this pull request may close these issues.

1 participant