feat(api): add "max" reasoning depth and service_tiers to Codex client models

- Introduced a new "max" level for reasoning depth in Codex client model configuration, providing maximum problem-solving capability.
- Added `service_tiers` field to model responses for better tier categorization.
- Updated unit tests to validate the inclusion and default behavior of `service_tiers` and the new "max" reasoning depth.
This commit is contained in:
Luis Pater
2026-06-20 22:49:43 +08:00
parent eb8d0d0684
commit bb414de33f
2 changed files with 8 additions and 0 deletions
+4
View File
@@ -531,6 +531,10 @@ func TestModelsWithClientVersionReturnsCodexCatalog(t *testing.T) {
if got, _ := custom["prefer_websockets"].(bool); got {
t.Fatalf("custom prefer_websockets = %v, want false", custom["prefer_websockets"])
}
customServiceTiers, ok := custom["service_tiers"].([]any)
if !ok || len(customServiceTiers) != 0 {
t.Fatalf("expected custom model service_tiers = [], got %#v", custom["service_tiers"])
}
if _, ok := custom["apply_patch_tool_type"]; ok {
t.Fatal("expected custom model to omit apply_patch_tool_type")
}