1
0
mirror of https://github.com/coalaura/whiskr.git synced 2025-09-08 17:06:42 +00:00
This commit is contained in:
Laura
2025-08-23 22:39:15 +02:00
parent 480e955910
commit 6a393a7da2

View File

@@ -11,7 +11,7 @@ func init() {
} }
func OpenRouterClient() *openrouter.Client { func OpenRouterClient() *openrouter.Client {
return openrouter.NewClient(env.Tokens.OpenRouter) return openrouter.NewClient(env.Tokens.OpenRouter, openrouter.WithXTitle("Whiskr"), openrouter.WithHTTPReferer("https://github.com/coalaura/whiskr"))
} }
func OpenRouterStartStream(ctx context.Context, request openrouter.ChatCompletionRequest) (*openrouter.ChatCompletionStream, error) { func OpenRouterStartStream(ctx context.Context, request openrouter.ChatCompletionRequest) (*openrouter.ChatCompletionStream, error) {