mirror of
https://gh-proxy.org/https://github.com/klinsmaya/CLIProxyAPI.git
synced 2026-11-09 09:56:49 +08:00
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:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user