mirror of
https://github.com/zed-industries/zed.git
synced 2024-09-18 18:08:07 +03:00
ollama: Add context_size for new "yi-coder" model (#17409)
Release Notes: - Added context_size for "yi-coder" model in ollama More information about the model on ollama: https://ollama.com/library/yi-coder:9b
This commit is contained in:
parent
2aae3ab448
commit
8660719bd1
@ -83,7 +83,7 @@ fn get_max_tokens(name: &str) -> usize {
|
||||
"llama3" | "gemma2" | "gemma" | "codegemma" | "starcoder" | "aya" => 8192,
|
||||
"codellama" | "starcoder2" => 16384,
|
||||
"mistral" | "codestral" | "mixstral" | "llava" | "qwen2" | "dolphin-mixtral" => 32768,
|
||||
"llama3.1" | "phi3" | "phi3.5" | "command-r" | "deepseek-coder-v2" => 128000,
|
||||
"llama3.1" | "phi3" | "phi3.5" | "command-r" | "deepseek-coder-v2" | "yi-coder" => 128000,
|
||||
_ => DEFAULT_TOKENS,
|
||||
}
|
||||
.clamp(1, MAXIMUM_TOKENS)
|
||||
|
Loading…
Reference in New Issue
Block a user