mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-02 05:04:23 +01:00
feat: add context window limit for claude4 (#2689)
This commit is contained in:
@@ -43,6 +43,7 @@ impl ModelConfig {
|
||||
|
||||
// Anthropic models, https://docs.anthropic.com/en/docs/about-claude/models
|
||||
name if name.contains("claude-3") => Some(200_000),
|
||||
name if name.contains("claude-4") => Some(200_000),
|
||||
|
||||
// Meta Llama models, https://github.com/meta-llama/llama-models/tree/main?tab=readme-ov-file#llama-models-1
|
||||
name if name.contains("llama3.2") => Some(128_000),
|
||||
|
||||
@@ -22,6 +22,7 @@ static MODEL_SPECIFIC_LIMITS: Lazy<HashMap<&'static str, usize>> = Lazy::new(||
|
||||
|
||||
// Anthropic models, https://docs.anthropic.com/en/docs/about-claude/models
|
||||
map.insert("claude-3", 200_000);
|
||||
map.insert("claude-4", 200_000);
|
||||
|
||||
// Google models, https://ai.google/get-started/our-models/
|
||||
map.insert("gemini-2.5", 1_000_000);
|
||||
|
||||
Reference in New Issue
Block a user