feat: add new model entries for Claude Sonnet 4 and Claude Opus 4 across multiple components, including constants and cache settings

This commit is contained in:
CaIon
2025-05-23 15:20:16 +08:00
parent 4978d63f46
commit 3cc1a79449
4 changed files with 16 additions and 0 deletions
+2
View File
@@ -31,6 +31,8 @@ var claudeModelMap = map[string]string{
"claude-3-5-sonnet-20240620": "claude-3-5-sonnet@20240620",
"claude-3-5-sonnet-20241022": "claude-3-5-sonnet-v2@20241022",
"claude-3-7-sonnet-20250219": "claude-3-7-sonnet@20250219",
"claude-sonnet-4-20250514": "claude-sonnet-4@20250514",
"claude-opus-4-20250514": "claude-opus-4@20250514",
}
const anthropicVersion = "vertex-2023-10-16"