-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Update defaults to gpt-5.1 #6652
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
Update defaults to gpt-5.1 #6652
Conversation
…tps://github.com/openai/codex into codex/update-models-to-gpt-5.1-and-gpt-5.1-codex
|
|
||
| #[cfg(target_os = "windows")] | ||
| pub const OPENAI_DEFAULT_MODEL: &str = "gpt-5"; | ||
| pub const OPENAI_DEFAULT_MODEL: &str = "gpt-5.1"; |
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.
let's double check with @dylan-hurd-oai
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.
![]()
| } else if slug.starts_with("gpt-3.5") { | ||
| model_family!(slug, "gpt-3.5", needs_special_apply_patch_instructions: true) | ||
| } else if slug.starts_with("test-gpt-5-codex") { | ||
| } else if slug.starts_with("test-gpt-5") { |
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.
??
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.
to include test-gpt-5.1
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.
it has codex prompt
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.
oh yeah I wanted to support gpt-5.1-codex
just for tests
| fn model_mapping_builds_tokenizer() -> Result<(), TokenizerError> { | ||
| // Choose a long-standing model alias that maps to cl100k_base. | ||
| let tok = Tokenizer::for_model("gpt-5")?; | ||
| let tok = Tokenizer::for_model("gpt-5.1")?; |
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.
does this actually work or do we get a fallback?
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.
fallback
dylan-hurd-oai
left a comment
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.
Should we introduce const variables for default gpt and gpt-x-codex?
|
Is there a bad merge with this PR? Look like a lot of unrelated changes. |
…tps://github.com/openai/codex into codex/update-models-to-gpt-5.1-and-gpt-5.1-codex
Summary
Testing
cargo test -p codex-core config::tests::test_precedence_fixture_with_gpt5_profileCodex Task