Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ class ModelFamily:
CLAUDE_3_5_HAIKU = "claude-3-5-haiku"
CLAUDE_3_5_SONNET = "claude-3-5-sonnet"
CLAUDE_3_7_SONNET = "claude-3-7-sonnet"
CLAUDE_4_OPUS = "claude-4-opus"
CLAUDE_4_SONNET = "claude-4-sonnet"
LLAMA_3_3_8B = "llama-3.3-8b"
LLAMA_3_3_70B = "llama-3.3-70b"
LLAMA_4_SCOUT = "llama-4-scout"
Expand Down Expand Up @@ -73,6 +75,8 @@ class ModelFamily:
"claude-3-5-haiku",
"claude-3-5-sonnet",
"claude-3-7-sonnet",
"claude-4-opus",
"claude-4-sonnet",
# llama_models
"llama-3.3-8b",
"llama-3.3-70b",
Expand Down Expand Up @@ -100,6 +104,8 @@ def is_claude(family: str) -> bool:
ModelFamily.CLAUDE_3_5_HAIKU,
ModelFamily.CLAUDE_3_5_SONNET,
ModelFamily.CLAUDE_3_7_SONNET,
ModelFamily.CLAUDE_4_OPUS,
ModelFamily.CLAUDE_4_SONNET,
)

@staticmethod
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,42 @@
# For Anthropic's Claude models based on:
# https://docs.anthropic.com/claude/docs/models-overview
_MODEL_INFO: Dict[str, ModelInfo] = {
# Claude 4 Opus
"claude-opus-4-20250514": {
"vision": True,
"function_calling": True,
"json_output": True,
"family": ModelFamily.CLAUDE_4_OPUS,
"structured_output": False,
"multiple_system_messages": False,
},
# Claude 4 Opus latest alias
"claude-opus-4-0": {
"vision": True,
"function_calling": True,
"json_output": True,
"family": ModelFamily.CLAUDE_4_OPUS,
"structured_output": False,
"multiple_system_messages": False,
},
# Claude 4 Sonnet
"claude-sonnet-4-20250514": {
"vision": True,
"function_calling": True,
"json_output": True,
"family": ModelFamily.CLAUDE_4_SONNET,
"structured_output": False,
"multiple_system_messages": False,
},
# Claude 4 Sonnet latest alias
"claude-sonnet-4-0": {
"vision": True,
"function_calling": True,
"json_output": True,
"family": ModelFamily.CLAUDE_4_SONNET,
"structured_output": False,
"multiple_system_messages": False,
},
# Claude 3.7 Sonnet
"claude-3-7-sonnet-20250219": {
"vision": True,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
"claude-3-5-haiku": "claude-3-5-haiku-20241022",
"claude-3-5-sonnet": "claude-3-5-sonnet-20241022",
"claude-3-7-sonnet": "claude-3-7-sonnet-20250219",
"claude-4-sonnet": "claude-sonnet-4-20250514",
"claude-4-opus": "claude-opus-4-20250514",
# Llama models
"llama-3.3-8b": "Llama-3.3-8B-Instruct",
"llama-3.3-70b": "Llama-3.3-70B-Instruct",
Expand Down Expand Up @@ -364,6 +366,22 @@
"structured_output": False,
"multiple_system_messages": True,
},
"claude-sonnet-4-20250514": {
"vision": True,
"function_calling": True,
"json_output": False, # Update this when Anthropic supports structured output
"family": ModelFamily.CLAUDE_4_SONNET,
"structured_output": False,
"multiple_system_messages": True,
},
"claude-opus-4-20250514": {
"vision": True,
"function_calling": True,
"json_output": False, # Update this when Anthropic supports structured output
"family": ModelFamily.CLAUDE_4_OPUS,
"structured_output": False,
"multiple_system_messages": True,
},
"Llama-3.3-8B-Instruct": {
"vision": False,
"function_calling": True,
Expand Down Expand Up @@ -432,11 +450,13 @@
"gemini-2.5-pro-preview-03-25": 2097152,
"gemini-2.5-flash-preview-05-20": 1048576,
"claude-3-haiku-20240307": 50000,
"claude-3-sonnet-20240229": 40000,
"claude-3-opus-20240229": 20000,
"claude-3-5-haiku-20241022": 50000,
"claude-3-5-sonnet-20241022": 40000,
"claude-3-7-sonnet-20250219": 20000,
"claude-3-sonnet-20240229": 200000,
"claude-3-opus-20240229": 200000,
"claude-3-5-haiku-20241022": 200000,
"claude-3-5-sonnet-20241022": 200000,
"claude-3-7-sonnet-20250219": 200000,
"claude-sonnet-4-20250514": 200000,
"claude-opus-4-20250514": 200000,
"Llama-3.3-8B-Instruct": 128000,
"Llama-3.3-70B-Instruct": 128000,
"Llama-4-Scout-17B-16E-Instruct-FP8": 128000,
Expand Down
Loading