From f51dd4d808d106f8e538b2863b0fbfc142307b83 Mon Sep 17 00:00:00 2001 From: CaIon Date: Mon, 27 Jul 2026 15:20:01 +0800 Subject: [PATCH] fix: allow Advanced Custom Responses Compact close #6461 --- common/api_type.go | 1 + controller/channel_test_internal_test.go | 1 + 2 files changed, 2 insertions(+) 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},