Add telemetry for AI use
This commit is contained in:
parent
9a6e488c8e
commit
c43dbb7533
@ -15,6 +15,7 @@ export function setApiKey(key)
|
|||||||
messageList.set(messages);
|
messageList.set(messages);
|
||||||
localStorage.setItem("anthropic-api-key", key);
|
localStorage.setItem("anthropic-api-key", key);
|
||||||
apiState.set("READY");
|
apiState.set("READY");
|
||||||
|
plausible("ClaudeAI Key");
|
||||||
}
|
}
|
||||||
|
|
||||||
function clearApiKey()
|
function clearApiKey()
|
||||||
@ -81,6 +82,7 @@ export function addMessage(text, handleTool)
|
|||||||
{
|
{
|
||||||
addMessageInternal('user', text);
|
addMessageInternal('user', text);
|
||||||
sendMessages(handleTool);
|
sendMessages(handleTool);
|
||||||
|
plausible("ClaudeAI Use");
|
||||||
}
|
}
|
||||||
|
|
||||||
function initialize()
|
function initialize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user