Merge pull request #5852 from continuedev/nate/claude-4-llm-info

add claude-4-sonnet and opus to llm-info
This commit is contained in:
Nate Sesti 2025-06-02 13:07:19 -07:00 • committed by GitHub
commit f95a32a796
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,6 +4,27 @@ export const Anthropic: ModelProvider = {
id: "anthropic",
displayName: "Anthropic",
models: [
{
model: "claude-sonnet-4-20250514",
displayName: "Claude 4 Sonnet",
contextLength: 200000,
maxCompletionTokens: 8192,
description:
"Most intelligent model with the highest level of intelligence and capability.",
// Sometimes written as claude-4-sonnet, other times as claude-sonnet-4
regex: /claude-(?:4-sonnet|sonnet-4).*/i,
recommendedFor: ["chat"],
},
{
model: "claude-opus-4-20250514",
displayName: "Claude 4 Opus",
contextLength: 200000,
maxCompletionTokens: 8192,
description:
"Most intelligent model with the highest level of intelligence and capability.",
regex: /claude-(?:4-opus|opus-4).*/i,
recommendedFor: ["chat"],
},
{
model: "claude-3-5-sonnet-latest",
displayName: "Claude 3.5 Sonnet",