diff --git a/src/composables/use-chat.ts b/src/composables/use-chat.ts index b0fd29755..195913e38 100644 --- a/src/composables/use-chat.ts +++ b/src/composables/use-chat.ts @@ -21,7 +21,13 @@ watch(apiKey, (key) => { const isConfigured = computed(() => apiKey.value.length > 0) function createAgent() { - const openrouter = createOpenRouter({ apiKey: apiKey.value }) + const openrouter = createOpenRouter({ + apiKey: apiKey.value, + headers: { + 'X-OpenRouter-Title': 'OpenPencil', + 'HTTP-Referer': 'https://github.com/dannote/open-pencil', + }, + }) return new ToolLoopAgent({ model: openrouter('anthropic/claude-sonnet-4'),