Commit 5e9cc681 by CaIon

feat: update header title for OpenRouter channel type

parent 45a59d32
...@@ -226,7 +226,7 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, header *http.Header, info * ...@@ -226,7 +226,7 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, header *http.Header, info *
} }
if info.ChannelType == constant.ChannelTypeOpenRouter { if info.ChannelType == constant.ChannelTypeOpenRouter {
header.Set("HTTP-Referer", "https://www.newapi.ai") header.Set("HTTP-Referer", "https://www.newapi.ai")
header.Set("X-Title", "New API") header.Set("X-OpenRouter-Title", "New API")
} }
return nil return nil
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment