-
Notifications
You must be signed in to change notification settings - Fork 6k
Add GPT-5.6 family support #10349
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
Add GPT-5.6 family support #10349
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 |
|---|---|---|
|
|
@@ -60,6 +60,11 @@ pub const OPEN_AI_KNOWN_MODELS: &[(&str, usize)] = &[ | |
| ("gpt-5.4-mini", 400_000), | ||
| ("gpt-5.4-nano", 400_000), | ||
| ("gpt-5.4-pro", 1_050_000), | ||
| ("gpt-5.5", 1_050_000), | ||
| ("gpt-5.5-pro", 1_050_000), | ||
| ("gpt-5.6-luna", 1_050_000), | ||
| ("gpt-5.6-sol", 1_050_000), | ||
| ("gpt-5.6-terra", 1_050_000), | ||
|
Comment on lines
+65
to
+67
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.
These IDs are only added to Useful? React with 👍 / 👎. |
||
| ]; | ||
|
|
||
| pub const OPEN_AI_DOC_URL: &str = "https://platform.openai.com/docs/models"; | ||
|
|
@@ -839,6 +844,26 @@ mod tests { | |
| use crate::api_client::AuthMethod; | ||
| use serde_json::json; | ||
|
|
||
| #[test] | ||
| fn gpt_5_5_and_5_6_models_have_expected_context_limits() { | ||
| for model in [ | ||
| "gpt-5.5", | ||
| "gpt-5.5-pro", | ||
| "gpt-5.6-luna", | ||
| "gpt-5.6-sol", | ||
| "gpt-5.6-terra", | ||
| ] { | ||
| assert_eq!( | ||
| OPEN_AI_KNOWN_MODELS | ||
| .iter() | ||
| .find(|(name, _)| *name == model) | ||
| .map(|(_, limit)| *limit), | ||
| Some(1_050_000), | ||
| "unexpected context limit for {model}" | ||
| ); | ||
| } | ||
| } | ||
|
|
||
| fn make_provider(name: &str) -> OpenAiProvider { | ||
| OpenAiProvider { | ||
| api_client: ApiClient::new_with_tls( | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.