Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ollama: Add deepseek-r1 context size to defaults (#23420)
Peter Tripp14cd178ab0ac
diff --git a/crates/ollama/src/ollama.rs b/crates/ollama/src/ollama.rsindex ab092c5ecdb..f417b7e69c2 100644--- a/crates/ollama/src/ollama.rs+++ b/crates/ollama/src/ollama.rs@@ -84,7 +84,7 @@ fn get_max_tokens(name: &str) -> usize {"mistral" | "codestral" | "mixstral" | "llava" | "qwen2" | "qwen2.5-coder"| "dolphin-mixtral" => 32768,"llama3.1" | "phi3" | "phi3.5" | "phi4" | "command-r" | "deepseek-coder-v2"- | "yi-coder" | "llama3.2" => 128000,+ | "deepseek-r1" | "yi-coder" | "llama3.2" => 128000,_ => DEFAULT_TOKENS,}.clamp(1, MAXIMUM_TOKENS)