feat: implement moonshot adaptor for request handling and response processing

This commit is contained in:
CaIon committed 2025-08-08 17:28:21 +08:00
1 parent b49274ea62
commit 9682c46cc4
6 files changed
+120 -20

No files matched your search

+2
View File
@@ -65,6 +65,8 @@ func ChannelType2APIType(channelType int) (int, bool) {
apiType = constant.APITypeCoze
case constant.ChannelTypeJimeng:
apiType = constant.APITypeJimeng
case constant.ChannelTypeMoonshot:
apiType = constant.APITypeMoonshot
}
if apiType == -1 {
return constant.APITypeOpenAI, false