fix: make the 'openai_organization' parameter actually work.
This commit is contained in:
1 parent
d667248960
commit
621006d1d5
3 files changed
+5
-6
No files matched your search
@@ -156,7 +156,7 @@ func Distribute() func(c *gin.Context) {
|
||||
ban = false
|
||||
}
|
||||
if nil != channel.OpenAIOrganization {
|
||||
c.Request.Header.Set("OpenAI-Organization", *channel.OpenAIOrganization)
|
||||
c.Set("channel_organization", *channel.OpenAIOrganization)
|
||||
}
|
||||
c.Set("auto_ban", ban)
|
||||
c.Set("model_mapping", channel.GetModelMapping())
|
||||
|
||||
Reference in new issue
Block a user