Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
deepseek: Fix for max output tokens blocking completions (#45236)
Ben Brandt0180f3e72ab9
diff --git a/crates/deepseek/src/deepseek.rs b/crates/deepseek/src/deepseek.rsindex e978aa08048..636258a5a13 100644--- a/crates/deepseek/src/deepseek.rs+++ b/crates/deepseek/src/deepseek.rs@@ -103,8 +103,9 @@ impl Model {pub fn max_output_tokens(&self) -> Option<u64> {match self {- Self::Chat => Some(8_192),- Self::Reasoner => Some(64_000),+ // Their API treats this max against the context window, which means we hit the limit a lot+ // Using the default value of None in the API instead+ Self::Chat | Self::Reasoner => None,Self::Custom {max_output_tokens, ..} => *max_output_tokens,