From d99065ee6472f7d7b2042f2f2fd91527eed1cfd8 Mon Sep 17 00:00:00 2001 From: STetsing <41009393+STetsing@users.noreply.github.com> Date: Thu, 9 Jan 2025 15:32:36 +0100 Subject: [PATCH] logging remixAi chat interactions --- apps/remix-ide/src/app/plugins/remixAIPlugin.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx b/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx index 1dde824c8a8..dbe2dcb4e5a 100644 --- a/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx +++ b/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx @@ -6,6 +6,7 @@ import React, { useCallback } from 'react'; import { ICompletions, IModel, RemoteInferencer, IRemoteModel, IParams, GenerationParams, CodeExplainAgent } from '@remix/remix-ai-core'; import { CustomRemixApi } from '@remix-api' import { PluginViewWrapper } from '@remix-ui/helper' +const _paq = (window._paq = window._paq || []) type chatRequestBufferT = { [key in keyof T]: T[key] @@ -199,6 +200,7 @@ export class RemixAIPlugin extends ViewPlugin { else { console.log("chatRequestBuffer is not empty. First process the last request.") } + _paq.push(['trackEvent', 'ai', 'remixAI_chat', 'askFromTerminal']) } async ProcessChatRequestBuffer(params:IParams=GenerationParams){