logging remixAi chat interactions

pull/5623/head
STetsing 3 weeks ago committed by Aniket
parent 47a135758d
commit 6f447b54bb
  1. 2
      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<T> = {
[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){

Loading…
Cancel
Save