# deepseek: Fix for max output tokens blocking completions \(\#45236\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/0180f3e72ab95cd2be1d96927a67faa616dcd137)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 0180f3e72ab95cd2be1d96927a67faa616dcd137

Requested commit: 0180f3e72ab95cd2be1d96927a67faa616dcd137

Commit: 0180f3e72ab95cd2be1d96927a67faa616dcd137

Tree: 568adc1b89d7231eb1ab010f41b15ff705756c54

Author: Ben Brandt

Committer: GitHub

## Message

```
deepseek: Fix for max output tokens blocking completions (#45236)

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
```

## Parents

- [5488a19221aa487d81020fcbb93efcf42b52e6fa](https://git.cafe/gitcafe/zed/commit/5488a19221aa487d81020fcbb93efcf42b52e6fa?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/0180f3e72ab95cd2be1d96927a67faa616dcd137?format=markdown)
