Skip to content

Commit 660c59a

Browse files
authored
Support AsyncAnthropicVertex as AnthropicProvider.anthropic_client (#3292)
1 parent 8c91c4b commit 660c59a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pydantic_ai_slim/pydantic_ai/providers/anthropic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@
1212
from pydantic_ai.providers import Provider
1313

1414
try:
15-
from anthropic import AsyncAnthropic, AsyncAnthropicBedrock
15+
from anthropic import AsyncAnthropic, AsyncAnthropicBedrock, AsyncAnthropicVertex
1616
except ImportError as _import_error:
1717
raise ImportError(
1818
'Please install the `anthropic` package to use the Anthropic provider, '
1919
'you can use the `anthropic` optional group — `pip install "pydantic-ai-slim[anthropic]"`'
2020
) from _import_error
2121

2222

23-
AsyncAnthropicClient: TypeAlias = AsyncAnthropic | AsyncAnthropicBedrock
23+
AsyncAnthropicClient: TypeAlias = AsyncAnthropic | AsyncAnthropicBedrock | AsyncAnthropicVertex
2424

2525

2626
class AnthropicProvider(Provider[AsyncAnthropicClient]):

0 commit comments

Comments
 (0)