From 265c7d93a2dd01081905869c770435ef103cad01 Mon Sep 17 00:00:00 2001 From: CaIon Date: Mon, 7 Jul 2025 12:36:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20refactor(adaptor):=20update=20HT?= =?UTF-8?q?TP=20referer=20to=20new=20API=20domain?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- relay/channel/openai/adaptor.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/relay/channel/openai/adaptor.go b/relay/channel/openai/adaptor.go index 711284f1..c0a3d7f8 100644 --- a/relay/channel/openai/adaptor.go +++ b/relay/channel/openai/adaptor.go @@ -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