Add 01.AI relay

This commit is contained in:
Maple Gao
2024-03-20 23:44:03 +08:00
committed by GitHub
parent c7658b70d1
commit cfabf8a656
7 changed files with 35 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ import (
"one-api/relay/channel"
"one-api/relay/channel/ai360"
"one-api/relay/channel/moonshot"
"one-api/relay/channel/lingyiwanwu"
relaycommon "one-api/relay/common"
"one-api/service"
"strings"
@@ -88,6 +89,8 @@ func (a *Adaptor) GetModelList() []string {
return ai360.ModelList
case common.ChannelTypeMoonshot:
return moonshot.ModelList
case common.ChannelTypeLingYiWanWu:
return lingyiwanwu.ModelList
default:
return ModelList
}