feat(models): gpt-6.1-sol joins the compiled-in codex catalog; codex User-Agent follows 0.159.0

The Codex backend (client_version 0.159.0) served eight list+supported models on
2026-09-29, gpt-6.1-sol first: context 272000, efforts low..max, default low.
POST /codex/responses with kigi's codex headers answers 200 and completes.
This commit is contained in:
雷电芽衣 committed 2026-09-29 16:34:19 -04:00
1 parent 791f953c07
commit de42bb55c9
3 files changed
+27 -14

No files matched your search

@@ -1559,6 +1559,7 @@ mod tests {
.map(|m| m.id.as_deref().unwrap_or_default())
.collect::<Vec<_>>(),
vec![
"openai-codex/gpt-6.1-sol",
"openai-codex/gpt-6-astra",
"openai-codex/gpt-6-sol",
"openai-codex/gpt-6-luna",
@@ -1567,7 +1568,7 @@ mod tests {
"openai-codex/gpt-5.6-luna",
"openai-codex/gpt-5.5",
],
"exactly the 7 hardcoded models, keyed openai-codex/<slug>"
"exactly the 8 hardcoded models, keyed openai-codex/<slug>"
);
// Excluded models never appear.
for absent in ["openai-codex/gpt-reserve", "openai-codex/codex-auto-review"] {
@@ -1579,9 +1580,9 @@ mod tests {
"{absent} must be absent from the hardcoded catalog"
);
}
let astra = &result.models[0];
assert_eq!(astra.name.as_deref(), Some("GPT-6-Astra"));
assert_eq!(astra.context_window.get(), 272_000);
let first = &result.models[0];
assert_eq!(first.name.as_deref(), Some("GPT-6.1-Sol"));
assert_eq!(first.context_window.get(), 272_000);
let sol = result
.models
.iter()