AI-native design editor. Open-source Figma alternative.
Report app name to OpenRouter via X-OpenRouter-Title header
Danila Poyarkov9235a75e6f17
diff --git a/src/composables/use-chat.ts b/src/composables/use-chat.tsindex 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'),