mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-16 04:02:55 -06:00
chore: Adding regex for claude-4 models to anthropic_llm and updating tests
Copybara import of the project: -- 824b4379d59a375191f8ce10997efd4021d5d0b3 by Andres Videla <andres.videla@trademe.co.nz>: Adding regex for claude-4 models to anthropic_llm and updating tests -- 8fa2a2df1931026dc803eee0e9b60e82e90c9efa by Wei Sun (Jack) <Jacksunwei@gmail.com>: Adds trailing comma. COPYBARA_INTEGRATE_REVIEW=https://github.com/google/adk-python/pull/934 from avidelatm:feature/add-support-for-claude-4-models-to-anthropic_llm 8d10bacdbec952ec9832180ac6c1d220916641da PiperOrigin-RevId: 764396694
This commit is contained in:
parent
c4cd1802bf
commit
7fc09b2c64
@ -208,7 +208,7 @@ class Claude(BaseLlm):
|
|||||||
@staticmethod
|
@staticmethod
|
||||||
@override
|
@override
|
||||||
def supported_models() -> list[str]:
|
def supported_models() -> list[str]:
|
||||||
return [r"claude-3-.*"]
|
return [r"claude-3-.*", r"claude-.*-4.*"]
|
||||||
|
|
||||||
@override
|
@override
|
||||||
async def generate_content_async(
|
async def generate_content_async(
|
||||||
|
@ -46,6 +46,8 @@ def test_match_gemini_family(model_name):
|
|||||||
'claude-3-haiku@20240307',
|
'claude-3-haiku@20240307',
|
||||||
'claude-3-opus@20240229',
|
'claude-3-opus@20240229',
|
||||||
'claude-3-sonnet@20240229',
|
'claude-3-sonnet@20240229',
|
||||||
|
'claude-sonnet-4@20250514',
|
||||||
|
'claude-opus-4@20250514',
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
def test_match_claude_family(model_name):
|
def test_match_claude_family(model_name):
|
||||||
|
Loading…
Reference in New Issue
Block a user