feat: add GPT-6 Sol and Luna to model catalog

This commit is contained in:
2026-09-23 04:55:38 +09:00
parent 7905ea4054
commit 6c53854f9b
2 changed files with 32 additions and 3 deletions
+15
View File
@@ -569,6 +569,21 @@ mod tests {
assert!(matches!(err, ResolveError::MalformedRef(_))); assert!(matches!(err, ResolveError::MalformedRef(_)));
} }
#[test]
fn builtin_codex_catalog_includes_gpt_6_sol_and_luna() {
let models = load_builtin_models().unwrap();
for model_id in ["gpt-6-sol", "gpt-6-luna"] {
let model = models
.iter()
.find(|model| model.provider == "codex-oauth" && model.id == model_id)
.unwrap_or_else(|| panic!("missing codex-oauth/{model_id}"));
assert_eq!(model.context_window, Some(1_050_000));
assert_eq!(model.max_context_window, Some(272_000));
assert!(model.capability.is_some());
}
}
#[test] #[test]
fn load_providers_from_path() { fn load_providers_from_path() {
let dir = tempfile::tempdir().unwrap(); let dir = tempfile::tempdir().unwrap();
+17 -3
View File
@@ -33,9 +33,9 @@ context_window = 256000
# context window on this route, even when public API docs advertise larger # context window on this route, even when public API docs advertise larger
# model-family windows. # model-family windows.
# Codex currently caps the ChatGPT-backed route at 272k even though the public # Codex currently caps the ChatGPT-backed route at 272k even though the public
# GPT-6 Astra and GPT-5.6 Sol advertise a 1.05M context window. Keep both values so # GPT-6 family and GPT-5.6 Sol advertise a 1.05M context window. Keep both values
# resolution and compaction use the effective backend limit without losing each # so resolution and compaction use the effective backend limit without losing
# underlying model capability. # each underlying model capability.
[[model]] [[model]]
id = "gpt-6-astra" id = "gpt-6-astra"
provider = "codex-oauth" provider = "codex-oauth"
@@ -43,6 +43,20 @@ context_window = 1050000
max_context_window = 272000 max_context_window = 272000
capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } } capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } }
[[model]]
id = "gpt-6-sol"
provider = "codex-oauth"
context_window = 1050000
max_context_window = 272000
capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } }
[[model]]
id = "gpt-6-luna"
provider = "codex-oauth"
context_window = 1050000
max_context_window = 272000
capability = { tool_calling = "parallel", structured_output = "json_schema", reasoning = "effort", vision = true, prompt_caching = { kind = "auto" } }
[[model]] [[model]]
id = "gpt-5.6-sol" id = "gpt-5.6-sol"
provider = "codex-oauth" provider = "codex-oauth"