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(_)));
}
#[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]
fn load_providers_from_path() {
let dir = tempfile::tempdir().unwrap();