Commit f51dd4d8 by CaIon

fix: allow Advanced Custom Responses Compact

close #6461
parent 398cdafe
......@@ -92,6 +92,7 @@ func IsResponsesCompactAPIType(apiType int) bool {
switch apiType {
case constant.APITypeOpenAI,
constant.APITypeCodex,
constant.APITypeAdvancedCustom,
constant.APITypeSub2API,
constant.APITypeNewAPI:
return true
......
......@@ -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},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment