From 902725eb66c0aff0aeb49f02e6fb0afa46769fc0 Mon Sep 17 00:00:00 2001 From: CaIon Date: Thu, 12 Mar 2026 15:05:58 +0800 Subject: [PATCH] feat: update header title for OpenRouter channel type --- 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 59fadedac..34d4952e7 100644 --- a/relay/channel/openai/adaptor.go +++ b/relay/channel/openai/adaptor.go @@ -226,7 +226,7 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, header *http.Header, info * } if info.ChannelType == constant.ChannelTypeOpenRouter { header.Set("HTTP-Referer", "https://www.newapi.ai") - header.Set("X-Title", "New API") + header.Set("X-OpenRouter-Title", "New API") } return nil }