diff --git a/common/api_type.go b/common/api_type.go index a01129e0..44841e11 100644 --- a/common/api_type.go +++ b/common/api_type.go @@ -92,6 +92,7 @@ func IsResponsesCompactAPIType(apiType int) bool { switch apiType { case constant.APITypeOpenAI, constant.APITypeCodex, + constant.APITypeAdvancedCustom, constant.APITypeSub2API, constant.APITypeNewAPI: return true diff --git a/controller/channel_test_internal_test.go b/controller/channel_test_internal_test.go index 6e1a4eee..89d0ed59 100644 --- a/controller/channel_test_internal_test.go +++ b/controller/channel_test_internal_test.go @@ -103,6 +103,7 @@ func TestResponsesCompactAPITypeSupport(t *testing.T) { }{ {name: "OpenAI", apiType: constant.APITypeOpenAI, want: true}, {name: "Codex", apiType: constant.APITypeCodex, want: true}, + {name: "Advanced Custom", apiType: constant.APITypeAdvancedCustom, want: true}, {name: "Sub2API", apiType: constant.APITypeSub2API, want: true}, {name: "New API", apiType: constant.APITypeNewAPI, want: true}, {name: "Anthropic", apiType: constant.APITypeAnthropic, want: false},