This commit is contained in:
WangBooth
2024-01-01 17:52:20 +08:00
committed by GitHub
5 changed files with 31 additions and 3 deletions

View File

@@ -82,6 +82,7 @@ func Distribute() func(c *gin.Context) {
c.Set("model_mapping", channel.GetModelMapping())
c.Request.Header.Set("Authorization", fmt.Sprintf("Bearer %s", channel.Key))
c.Set("base_url", channel.GetBaseURL())
c.Set("openai_organization", channel.Organization)
switch channel.Type {
case common.ChannelTypeAzure:
c.Set("api_version", channel.Other)