feat: implement moonshot adaptor for request handling and response processing

This commit is contained in:
CaIon
2025-08-08 17:28:21 +08:00
parent 8b57da9a2b
commit f6c7828160
6 changed files with 120 additions and 20 deletions

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