feat: support vertex ai #377

This commit is contained in:
CalciumIon committed 2024-08-27 20:19:51 +08:00
1 parent 045e2cfdbf
commit b8664e71e6
18 files changed
+609 -47

No files matched your search

+2
View File
@@ -199,6 +199,8 @@ func SetupContextForSelectedChannel(c *gin.Context, channel *model.Channel, mode
switch channel.Type {
case common.ChannelTypeAzure:
c.Set("api_version", channel.Other)
case common.ChannelTypeVertexAi:
c.Set("region", channel.Other)
case common.ChannelTypeXunfei:
c.Set("api_version", channel.Other)
case common.ChannelTypeGemini: