Skip to content

Add GPT-5 OpenAI model strings #2477

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

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

zachmayer
Copy link
Contributor

@zachmayer zachmayer commented Aug 7, 2025

Adds GPT-5 model IDs to KnownModelName

@zachmayer zachmayer changed the title Add GPT-5 OpenAI model strings (prefixed only) Add GPT-5 OpenAI model strings Aug 7, 2025
@zachmayer zachmayer force-pushed the feat/add-gpt5-model-ids branch from 6617a52 to 8b170ea Compare August 7, 2025 20:41
@zachmayer
Copy link
Contributor Author

The new openai sdk (1.99.3) breaks some stuff, so I didn't bump it: https://pypi.org/project/openai/

@jerry-reevo
Copy link
Contributor

Would it make sense to introduce the new minimal reasoning effort and verbosity config that was released with GPT-5?

https://openai.com/index/introducing-gpt-5-for-developers/

@ZacharyHampton
Copy link

Would it make sense to introduce the new minimal reasoning effort and verbosity config that was released with GPT-5?

https://openai.com/index/introducing-gpt-5-for-developers/

yes

Comment on lines 89 to 96
# Include latest GPT-5 variants until the SDK enumerates them
Literal[
'gpt-5',
'gpt-5-mini',
'gpt-5-nano',
'gpt-5-2025-08-07',
'gpt-5-mini-2025-08-07',
'gpt-5-nano-2025-08-07',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we just need to bump the minimum.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Kludex Bumping the min breaks a bunch of tests

@Kludex
Copy link
Member

Kludex commented Aug 8, 2025

The new openai sdk (1.99.3) breaks some stuff, so I didn't bump it: pypi.org/project/openai

Got it.

@fdb02983rhy
Copy link

Hi, Could you also add the chat model?

@zachmayer
Copy link
Contributor Author

Responding to PR feedbacK

  • @jerry-reevo and @ZacharyHampton and @Kludex — yes, we should bump the OpenAI SDK version, and add the mininal reasoning effort and verbosity config that was released with GPT-5? This got a little complicated, so I opted not to do it in this PR. I plan to do this in a future PR.
  • @fdb02983rhy I added gpt-5-chat-latest to the list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants