From 5e9cc681f55c1a07929be5e75fc53d1a1ec36c2c 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 59fadeda..34d4952e 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 }