add coze request

This commit is contained in:
creamlike1024 committed 2025-05-13 12:52:22 +08:00
1 parent a9b0c25fb7
commit cd8a2f85db
7 files changed
+343

No files matched your search

+3
View File
@@ -33,6 +33,7 @@ const (
APITypeOpenRouter
APITypeXinference
APITypeXai
APITypeCoze
APITypeDummy // this one is only for count, do not add any channel after this
)
@@ -95,6 +96,8 @@ func ChannelType2APIType(channelType int) (int, bool) {
apiType = APITypeXinference
case common.ChannelTypeXai:
apiType = APITypeXai
case common.ChannelTypeCoze:
apiType = APITypeCoze
}
if apiType == -1 {
return APITypeOpenAI, false