Skip to content

deepseek: Fix for max output tokens blocking completions (#45236) (cherry-pick to preview)#45250

Merged
zed-zippy[bot] merged 1 commit intov0.218.xfrom
cherry-pick-v0.218.x-0180f3e7
Dec 18, 2025
Merged

deepseek: Fix for max output tokens blocking completions (#45236) (cherry-pick to preview)#45250
zed-zippy[bot] merged 1 commit intov0.218.xfrom
cherry-pick-v0.218.x-0180f3e7

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Dec 18, 2025

Cherry-pick of #45236 to preview


They count the requested max_output_tokens against the prompt total.
Seems like a bug on their end as most other providers don't do this, but
now we just default to None for the main models and let the API use its
default behavior which works just fine.

Closes: #45134

Release Notes:

  • deepseek: Fix issue with Deepseek API that was causing the token limit
    to be reached sooner than necessary

They count the requested max_output_tokens against the prompt total.
Seems like a bug on their end as most other providers don't do this, but
now we just default to None for the main models and let the API use its
default behavior which works just fine.

Closes: #45134

Release Notes:

- deepseek: Fix issue with Deepseek API that was causing the token limit
to be reached sooner than necessary
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 18, 2025
@zed-zippy zed-zippy bot merged commit 7775d3b into v0.218.x Dec 18, 2025
23 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.218.x-0180f3e7 branch December 18, 2025 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant