merge upstream

Signed-off-by: wozulong <>
This commit is contained in:
wozulong
2024-09-05 17:36:17 +08:00
29 changed files with 630 additions and 91 deletions

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: