feat: update header title for OpenRouter channel type

This commit is contained in:
CaIon
2026-03-12 15:05:58 +08:00
parent 122d5c00ef
commit 902725eb66

View File

@@ -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
}