瀏覽代碼

feat: update header title for OpenRouter channel type

CaIon 2 月之前
父節點
當前提交
5e9cc681f5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      relay/channel/openai/adaptor.go

+ 1 - 1
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
 }