From 71d9dea8a74555b3dd594d9631d0b17bf029e12e Mon Sep 17 00:00:00 2001 From: xiongfei <278837230@qq.com> Date: Tue, 31 Mar 2026 14:27:06 +0800 Subject: [PATCH] add openrouter appinfo --- pkg/providers/openai_compat/provider.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/providers/openai_compat/provider.go b/pkg/providers/openai_compat/provider.go index 5ac98296c..a3a724dbe 100644 --- a/pkg/providers/openai_compat/provider.go +++ b/pkg/providers/openai_compat/provider.go @@ -84,7 +84,7 @@ func logOpenRouter429Exhausted(stream bool, resolvedModel string, maxAttempts in func logOpenRouter429BackoffCancelled(stream bool, resolvedModel string, attempt, maxAttempts int, cancelErr error) { log.Printf( - "openai_compat OpenRouter %s: HTTP 429 retry cancelled during backoff (attempt %d/%d, model=%q): %v", + "openai_compat OpenRouter %s: HTTP 429 retry cancel during backoff (attempt %d/%d, model=%q): %v", openRouterLogKind(stream), attempt, maxAttempts, resolvedModel, cancelErr, ) } @@ -96,8 +96,8 @@ func applyOpenRouterAttributionHeaders(h http.Header, apiBase string) { return } h.Set("Referer", openRouterAttributionReferer) - h.Set("X-OpenRouter-Title", openRouterAttributionTitle) - h.Set("X-OpenRouter-Categories", openRouterAttributionCategories) + h.Set("X-Openrouter-Title", openRouterAttributionTitle) + h.Set("X-Openrouter-Categories", openRouterAttributionCategories) } func WithMaxTokensField(maxTokensField string) Option {