Skip to content

πŸ™Œ OpenHands: AI-Driven Development

feat(llm): Add Claude 3.7 backend configurations (#6937)

Graham Neubig6ba79c454b27
diff --git a/openhands/llm/llm.py b/openhands/llm/llm.py
index 66bc6f99cb..3ecf19c367 100644
--- a/openhands/llm/llm.py
+++ b/openhands/llm/llm.py
@@ -42,6 +42,7 @@ LLM_RETRY_EXCEPTIONS: tuple[type[Exception], ...] = (RateLimitError,)
# cache prompt supporting models
# remove this when we gemini and deepseek are supported
CACHE_PROMPT_SUPPORTED_MODELS = [
+ 'claude-3-7-sonnet-20250219',
'claude-3-5-sonnet-20241022',
'claude-3-5-sonnet-20240620',
'claude-3-5-haiku-20241022',
@@ -51,6 +52,7 @@ CACHE_PROMPT_SUPPORTED_MODELS = [
# function calling supporting models
FUNCTION_CALLING_SUPPORTED_MODELS = [
+ 'claude-3-7-sonnet-20250219',
'claude-3-5-sonnet',
'claude-3-5-sonnet-20240620',
'claude-3-5-sonnet-20241022',