Skip to content

Commit

Permalink
logging remixAi chat interactions
Browse files Browse the repository at this point in the history
  • Loading branch information
STetsing committed Jan 9, 2025
1 parent 91044ee commit d99065e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/remix-ide/src/app/plugins/remixAIPlugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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){
Expand Down

0 comments on commit d99065e

Please sign in to comment.