@@ -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},
|
||||
|
||||
Reference in New Issue
Block a user