Skip to content

Commit c0abccf

Browse files
authored
Add support for o3 and o4-mini (#1557)
1 parent f955890 commit c0abccf

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
@@ -194,6 +194,8 @@
194194
'o1-mini-2024-09-12',
195195
'o1-preview',
196196
'o1-preview-2024-09-12',
197+
'o3',
198+
'o3-2025-04-16',
197199
'o3-mini',
198200
'o3-mini-2025-01-31',
199201
'openai:chatgpt-4o-latest',
@@ -243,8 +245,12 @@
243245
'openai:o1-mini-2024-09-12',
244246
'openai:o1-preview',
245247
'openai:o1-preview-2024-09-12',
248+
'openai:o3',
249+
'openai:o3-2025-04-16',
246250
'openai:o3-mini',
247251
'openai:o3-mini-2025-01-31',
252+
'openai:o4-mini',
253+
'openai:o4-mini-2025-04-16',
248254
'test',
249255
],
250256
)

pydantic_ai_slim/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ dependencies = [
5656
# WARNING if you add optional groups, please update docs/install.md
5757
logfire = ["logfire>=3.11.0"]
5858
# Models
59-
openai = ["openai>=1.74.0"]
59+
openai = ["openai>=1.75.0"]
6060
cohere = ["cohere>=5.13.11; platform_system != 'Emscripten'"]
6161
vertexai = ["google-auth>=2.36.0", "requests>=2.32.3"]
6262
anthropic = ["anthropic>=0.49.0"]

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)