mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-19 22:53:41 +08:00
feat: add deployment_mapping for Azure OpenAI
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user