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

+3
View File
@@ -19,6 +19,7 @@ import (
"one-api/relay/channel/jina"
"one-api/relay/channel/mistral"
"one-api/relay/channel/mokaai"
"one-api/relay/channel/moonshot"
"one-api/relay/channel/ollama"
"one-api/relay/channel/openai"
"one-api/relay/channel/palm"
@@ -98,6 +99,8 @@ func GetAdaptor(apiType int) channel.Adaptor {
return &coze.Adaptor{}
case constant.APITypeJimeng:
return &jimeng.Adaptor{}
case constant.APITypeMoonshot:
return &moonshot.Adaptor{} // Moonshot uses Claude API
}
return nil
}