-
Notifications
You must be signed in to change notification settings - Fork 1.9k
refactor: remove OpenAI deprecated models #4879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -272,8 +272,6 @@ | |||
| 'gateway/groq:playai-tts', | ||||
| 'gateway/groq:playai-tts-arabic', | ||||
| 'gateway/groq:qwen/qwen-3-32b', | ||||
| 'gateway/openai:chatgpt-4o-latest', | ||||
| 'gateway/openai:codex-mini-latest', | ||||
| 'gateway/openai:computer-use-preview-2025-03-11', | ||||
| 'gateway/openai:computer-use-preview', | ||||
| 'gateway/openai:gpt-3.5-turbo-0125', | ||||
|
|
@@ -283,15 +281,9 @@ | |||
| 'gateway/openai:gpt-3.5-turbo-16k-0613', | ||||
| 'gateway/openai:gpt-3.5-turbo-16k', | ||||
| 'gateway/openai:gpt-3.5-turbo', | ||||
| 'gateway/openai:gpt-4-0125-preview', | ||||
| 'gateway/openai:gpt-4-0314', | ||||
| 'gateway/openai:gpt-4-0613', | ||||
| 'gateway/openai:gpt-4-1106-preview', | ||||
| 'gateway/openai:gpt-4-32k-0314', | ||||
| 'gateway/openai:gpt-4-32k-0613', | ||||
| 'gateway/openai:gpt-4-32k', | ||||
| 'gateway/openai:gpt-4-turbo-2024-04-09', | ||||
| 'gateway/openai:gpt-4-turbo-preview', | ||||
| 'gateway/openai:gpt-4-turbo', | ||||
| 'gateway/openai:gpt-4-vision-preview', | ||||
| 'gateway/openai:gpt-4.1-2025-04-14', | ||||
|
|
@@ -304,7 +296,6 @@ | |||
| 'gateway/openai:gpt-4o-2024-05-13', | ||||
| 'gateway/openai:gpt-4o-2024-08-06', | ||||
| 'gateway/openai:gpt-4o-2024-11-20', | ||||
| 'gateway/openai:gpt-4o-audio-preview-2024-10-01', | ||||
| 'gateway/openai:gpt-4o-audio-preview-2024-12-17', | ||||
| 'gateway/openai:gpt-4o-audio-preview-2025-06-03', | ||||
| 'gateway/openai:gpt-4o-audio-preview', | ||||
|
|
@@ -330,7 +321,6 @@ | |||
| 'gateway/openai:gpt-5.1-chat-latest', | ||||
| 'gateway/openai:gpt-5.1-codex-max', | ||||
| 'gateway/openai:gpt-5.1-codex', | ||||
| 'gateway/openai:gpt-5.1-mini', | ||||
| 'gateway/openai:gpt-5.1', | ||||
| 'gateway/openai:gpt-5.2-2025-12-11', | ||||
| 'gateway/openai:gpt-5.2-chat-latest', | ||||
|
|
@@ -345,10 +335,7 @@ | |||
| 'gateway/openai:gpt-5.4', | ||||
| 'gateway/openai:gpt-5', | ||||
| 'gateway/openai:o1-2024-12-17', | ||||
| 'gateway/openai:o1-mini-2024-09-12', | ||||
| 'gateway/openai:o1-mini', | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Inconsistent removal:
Suggested change
Was this helpful? React with 👍 or 👎 to provide feedback. |
||||
| 'gateway/openai:o1-preview-2024-09-12', | ||||
| 'gateway/openai:o1-preview', | ||||
| 'gateway/openai:o1-pro-2025-03-19', | ||||
| 'gateway/openai:o1-pro', | ||||
| 'gateway/openai:o1', | ||||
|
|
@@ -486,8 +473,6 @@ | |||
| 'moonshotai:moonshot-v1-32k', | ||||
| 'moonshotai:moonshot-v1-8k-vision-preview', | ||||
| 'moonshotai:moonshot-v1-8k', | ||||
| 'openai:chatgpt-4o-latest', | ||||
| 'openai:codex-mini-latest', | ||||
| 'openai:computer-use-preview-2025-03-11', | ||||
| 'openai:computer-use-preview', | ||||
| 'openai:gpt-3.5-turbo-0125', | ||||
|
|
@@ -497,15 +482,9 @@ | |||
| 'openai:gpt-3.5-turbo-16k-0613', | ||||
| 'openai:gpt-3.5-turbo-16k', | ||||
| 'openai:gpt-3.5-turbo', | ||||
| 'openai:gpt-4-0125-preview', | ||||
| 'openai:gpt-4-0314', | ||||
| 'openai:gpt-4-0613', | ||||
| 'openai:gpt-4-1106-preview', | ||||
| 'openai:gpt-4-32k-0314', | ||||
| 'openai:gpt-4-32k-0613', | ||||
| 'openai:gpt-4-32k', | ||||
| 'openai:gpt-4-turbo-2024-04-09', | ||||
| 'openai:gpt-4-turbo-preview', | ||||
| 'openai:gpt-4-turbo', | ||||
| 'openai:gpt-4-vision-preview', | ||||
| 'openai:gpt-4.1-2025-04-14', | ||||
|
|
@@ -518,7 +497,6 @@ | |||
| 'openai:gpt-4o-2024-05-13', | ||||
| 'openai:gpt-4o-2024-08-06', | ||||
| 'openai:gpt-4o-2024-11-20', | ||||
| 'openai:gpt-4o-audio-preview-2024-10-01', | ||||
| 'openai:gpt-4o-audio-preview-2024-12-17', | ||||
| 'openai:gpt-4o-audio-preview-2025-06-03', | ||||
| 'openai:gpt-4o-audio-preview', | ||||
|
|
@@ -544,7 +522,6 @@ | |||
| 'openai:gpt-5.1-chat-latest', | ||||
| 'openai:gpt-5.1-codex-max', | ||||
| 'openai:gpt-5.1-codex', | ||||
| 'openai:gpt-5.1-mini', | ||||
| 'openai:gpt-5.1', | ||||
| 'openai:gpt-5.2-2025-12-11', | ||||
| 'openai:gpt-5.2-chat-latest', | ||||
|
|
@@ -559,10 +536,6 @@ | |||
| 'openai:gpt-5.4', | ||||
| 'openai:gpt-5', | ||||
| 'openai:o1-2024-12-17', | ||||
| 'openai:o1-mini-2024-09-12', | ||||
| 'openai:o1-mini', | ||||
| 'openai:o1-preview-2024-09-12', | ||||
| 'openai:o1-preview', | ||||
| 'openai:o1-pro-2025-03-19', | ||||
| 'openai:o1-pro', | ||||
| 'openai:o1', | ||||
|
|
||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚩 Existing tests and profile code still reference removed
o1-minimodelMultiple test files (
tests/models/test_openai.py:858-882,tests/profiles/test_openai.py:34,tests/models/test_model.py:278) and profile code (pydantic_ai_slim/pydantic_ai/profiles/openai.py:167-169) still referenceo1-mini. This is not a bug becauseKnownModelNameis a type-level hint for autocomplete/IDE support — users can still pass arbitrary model name strings toOpenAIChatModel. The profile special-casing foro1-mini's system prompt role remains useful for anyone passing the string directly. However, the test attests/profiles/test_openai.py:34andtests/models/test_model.py:278might warrant review to determine if they should be updated or removed for consistency with the deprecation intent.Was this helpful? React with 👍 or 👎 to provide feedback.