Skip to content

Commit 223a58f

Browse files
Remove older deprecated models and add new model of Anthropic (#2435)
1 parent 3ae5e6c commit 223a58f

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

pydantic_ai_slim/pydantic_ai/models/__init__.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@
3434
KnownModelName = TypeAliasType(
3535
'KnownModelName',
3636
Literal[
37-
'anthropic:claude-2.0',
38-
'anthropic:claude-2.1',
3937
'anthropic:claude-3-5-haiku-20241022',
4038
'anthropic:claude-3-5-haiku-latest',
4139
'anthropic:claude-3-5-sonnet-20240620',
@@ -46,10 +44,10 @@
4644
'anthropic:claude-3-haiku-20240307',
4745
'anthropic:claude-3-opus-20240229',
4846
'anthropic:claude-3-opus-latest',
49-
'anthropic:claude-3-sonnet-20240229',
5047
'anthropic:claude-4-opus-20250514',
5148
'anthropic:claude-4-sonnet-20250514',
5249
'anthropic:claude-opus-4-0',
50+
'anthropic:claude-opus-4-1-20250805',
5351
'anthropic:claude-opus-4-20250514',
5452
'anthropic:claude-sonnet-4-0',
5553
'anthropic:claude-sonnet-4-20250514',
@@ -100,8 +98,6 @@
10098
'bedrock:mistral.mixtral-8x7b-instruct-v0:1',
10199
'bedrock:mistral.mistral-large-2402-v1:0',
102100
'bedrock:mistral.mistral-large-2407-v1:0',
103-
'claude-2.0',
104-
'claude-2.1',
105101
'claude-3-5-haiku-20241022',
106102
'claude-3-5-haiku-latest',
107103
'claude-3-5-sonnet-20240620',
@@ -112,10 +108,10 @@
112108
'claude-3-haiku-20240307',
113109
'claude-3-opus-20240229',
114110
'claude-3-opus-latest',
115-
'claude-3-sonnet-20240229',
116111
'claude-4-opus-20250514',
117112
'claude-4-sonnet-20250514',
118113
'claude-opus-4-0',
114+
'claude-opus-4-1-20250805',
119115
'claude-opus-4-20250514',
120116
'claude-sonnet-4-0',
121117
'claude-sonnet-4-20250514',

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.28.0"]
69-
anthropic = ["anthropic>=0.52.0"]
69+
anthropic = ["anthropic>=0.61.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)