瀏覽代碼

Add telemetry for AI use

Alessandro Pignotti 7 月之前
父節點
當前提交
c43dbb7533
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/lib/anthropic.js

+ 2 - 0
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()