Skip to content

Commit c7a3591

Browse files
authored
Revert "Remove older deprecated models of Anthropic" (#2358)
1 parent 8f20f9b commit c7a3591

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

pydantic_ai_slim/pydantic_ai/models/__init__.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@
3434
KnownModelName = TypeAliasType(
3535
'KnownModelName',
3636
Literal[
37+
'anthropic:claude-2.0',
38+
'anthropic:claude-2.1',
3739
'anthropic:claude-3-5-haiku-20241022',
3840
'anthropic:claude-3-5-haiku-latest',
3941
'anthropic:claude-3-5-sonnet-20240620',
@@ -44,6 +46,7 @@
4446
'anthropic:claude-3-haiku-20240307',
4547
'anthropic:claude-3-opus-20240229',
4648
'anthropic:claude-3-opus-latest',
49+
'anthropic:claude-3-sonnet-20240229',
4750
'anthropic:claude-4-opus-20250514',
4851
'anthropic:claude-4-sonnet-20250514',
4952
'anthropic:claude-opus-4-0',
@@ -97,6 +100,8 @@
97100
'bedrock:mistral.mixtral-8x7b-instruct-v0:1',
98101
'bedrock:mistral.mistral-large-2402-v1:0',
99102
'bedrock:mistral.mistral-large-2407-v1:0',
103+
'claude-2.0',
104+
'claude-2.1',
100105
'claude-3-5-haiku-20241022',
101106
'claude-3-5-haiku-latest',
102107
'claude-3-5-sonnet-20240620',
@@ -107,6 +112,7 @@
107112
'claude-3-haiku-20240307',
108113
'claude-3-opus-20240229',
109114
'claude-3-opus-latest',
115+
'claude-3-sonnet-20240229',
110116
'claude-4-opus-20250514',
111117
'claude-4-sonnet-20250514',
112118
'claude-opus-4-0',

pydantic_ai_slim/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ openai = ["openai>=1.92.0"]
6666
cohere = ["cohere>=5.16.0; platform_system != 'Emscripten'"]
6767
vertexai = ["google-auth>=2.36.0", "requests>=2.32.2"]
6868
google = ["google-genai>=1.24.0"]
69-
anthropic = ["anthropic>=0.59.0"]
69+
anthropic = ["anthropic>=0.52.0"]
7070
groq = ["groq>=0.19.0"]
7171
mistral = ["mistralai>=1.9.2"]
7272
bedrock = ["boto3>=1.37.24"]

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)