8000 chore: Adding regex for claude-4 models to anthropic_llm and updating… · stevenchendan/adk-python@7fc09b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7fc09b2

Browse files
avidelatmcopybara-github
authored andcommitted
chore: Adding regex for claude-4 models to anthropic_llm and updating tests
Copybara import of the project: -- 824b437 by Andres Videla <andres.videla@trademe.co.nz>: Adding regex for claude-4 models to anthropic_llm and updating tests -- 8fa2a2d by Wei Sun (Jack) <Jacksunwei@gmail.com>: Adds trailing comma. COPYBARA_INTEGRATE_REVIEW=g 8000 oogle#934 from avidelatm:feature/add-support-for-claude-4-models-to-anthropic_llm 8d10bac PiperOrigin-RevId: 764396694
1 parent c4cd180 commit 7fc09b2

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/google/adk/models/anthropic_llm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ class Claude(BaseLlm):
208208
@staticmethod
209209
@override
210210
def supported_models() -> list[str]:
211-
return [r"claude-3-.*"]
211+
return [r"claude-3-.*", r"claude-.*-4.*"]
212212

213213
@override
214214
async def generate_content_async(

tests/unittests/models/test_models.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ def test_match_gemini_family(model_name):
4646
'claude-3-haiku@20240307',
4747
'claude-3-opus@20240229',
4848
'claude-3-sonnet@20240229',
49+
'claude-sonnet-4@20250514',
50+
'claude-opus-4@20250514',
4951
],
5052
)
5153
def test_match_claude_family(model_name):

0 commit comments

Comments
 (0)
0