feat: add deployment_mapping for Azure OpenAI

This commit is contained in:
WqyJh
2023-11-20 16:00:21 +08:00
parent 495fc628e4
commit 9042b7c4e4
5 changed files with 68 additions and 12 deletions

View File

@@ -85,6 +85,7 @@ func Distribute() func(c *gin.Context) {
switch channel.Type {
case common.ChannelTypeAzure:
c.Set("api_version", channel.Other)
c.Set("deployment_mapping", channel.GetDeploymentMapping())
case common.ChannelTypeXunfei:
c.Set("api_version", channel.Other)
case common.ChannelTypeAIProxyLibrary: