Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
36b0f4b0
authored
Jan 25, 2026
by
Li-Xingyu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: enhance Authorization header handling with Header Override support
parent
0dfa6071
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
5 deletions
+0
-5
relay/channel/openai/adaptor.go
+0
-5
No files found.
relay/channel/openai/adaptor.go
View file @
36b0f4b0
...
...
@@ -184,11 +184,6 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, header *http.Header, info *
header
.
Set
(
"api-key"
,
info
.
ApiKey
)
return
nil
}
// 自定义渠道类型完全跳过默认 Authorization 设置,由 Header Override 控制
if
info
.
ChannelType
==
constant
.
ChannelTypeCustom
{
// 自定义渠道不设置默认 Authorization,完全由 Header Override 控制
return
nil
}
if
info
.
ChannelType
==
constant
.
ChannelTypeOpenAI
&&
""
!=
info
.
Organization
{
header
.
Set
(
"OpenAI-Organization"
,
info
.
Organization
)
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment