From c43dbb753395143a4cfb0ce82389740e7aa38a33 Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Thu, 19 Dec 2024 11:04:40 +0100 Subject: [PATCH] Add telemetry for AI use --- src/lib/anthropic.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib/anthropic.js b/src/lib/anthropic.js index bb5675a..99c875c 100644 --- a/src/lib/anthropic.js +++ b/src/lib/anthropic.js @@ -15,6 +15,7 @@ export function setApiKey(key) messageList.set(messages); localStorage.setItem("anthropic-api-key", key); apiState.set("READY"); + plausible("ClaudeAI Key"); } function clearApiKey() @@ -81,6 +82,7 @@ export function addMessage(text, handleTool) { addMessageInternal('user', text); sendMessages(handleTool); + plausible("ClaudeAI Use"); } function initialize()