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