feat: add vertex claude channel

This commit is contained in:
linzhaoming
2024-06-18 16:51:00 +08:00
parent c489443848
commit 5e1125e4cb
11 changed files with 378 additions and 0 deletions

View File

@@ -21,6 +21,7 @@ const (
APITypeAws
APITypeCohere
APITypeScholarAI
APITypeVertexClaude
APITypeDummy // this one is only for count, do not add any channel after this
)
@@ -59,6 +60,8 @@ func ChannelType2APIType(channelType int) (int, bool) {
apiType = APITypeCohere
case common.ChannelTypeScholarAI:
apiType = APITypeScholarAI
case common.ChannelTypeVertexClaude:
apiType = APITypeVertexClaude
}
if apiType == -1 {
return APITypeOpenAI, false