🔧 refactor(adaptor): update HTTP referer to new API domain

This commit is contained in:
CaIon
2025-07-07 12:36:04 +08:00
parent 9546a47f2b
commit 265c7d93a2

View File

@@ -145,7 +145,7 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, header *http.Header, info *
header.Set("Authorization", "Bearer "+info.ApiKey)
}
if info.ChannelType == constant.ChannelTypeOpenRouter {
header.Set("HTTP-Referer", "https://github.com/Calcium-Ion/new-api")
header.Set("HTTP-Referer", "https://www.newapi.ai")
header.Set("X-Title", "New API")
}
return nil