Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
ollama: Change default context size to 4096 (#31682)
tidely6d687a2c2c26
diff --git a/crates/ollama/src/ollama.rs b/crates/ollama/src/ollama.rsindex a18c134c4cc..a42510279c5 100644--- a/crates/ollama/src/ollama.rs+++ b/crates/ollama/src/ollama.rs@@ -42,7 +42,7 @@ pub struct Model {fn get_max_tokens(name: &str) -> usize {/// Default context length for unknown models.- const DEFAULT_TOKENS: usize = 2048;+ const DEFAULT_TOKENS: usize = 4096;/// Magic number. Lets many Ollama models work with ~16GB of ram.const MAXIMUM_TOKENS: usize = 16384;