Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -189,6 +189,7 @@ export class RemixAIPlugin extends Plugin {
params.stream_result = false // enforce no stream result
params.threadId = newThreadID
params.provider = this.assistantProvider
_paq.push(['trackEvent', 'ai', 'remixAI', 'GenerateNewAIWorkspace'])

if (useRag) {
try {
Expand Down Expand Up @@ -226,6 +227,7 @@ export class RemixAIPlugin extends Plugin {
params.stream_result = false // enforce no stream result
params.threadId = newThreadID
params.provider = this.assistantProvider
_paq.push(['trackEvent', 'ai', 'remixAI', 'WorkspaceAgentEdit'])
if (useRag) {
try {
let ragContext = ""
Expand Down
3 changes: 3 additions & 0 deletions libs/remix-ai-core/src/types/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ const CompletionParams:IParams = {
max_new_tokens: 15,
stream_result: false,
max_tokens: 200,
version: '1.0.0'
}

const InsertionParams:IParams = {
Expand All @@ -69,6 +70,7 @@ const InsertionParams:IParams = {
stream_result: false,
stream: false,
model: "",
version: '1.0.0',
}

const GenerationParams:IParams = {
Expand All @@ -81,6 +83,7 @@ const GenerationParams:IParams = {
model: "",
repeat_penalty: 1.2,
terminal_output: false,
version: '1.0.0',
}

const AssistantParams:IParams = GenerationParams
Expand Down
1 change: 1 addition & 0 deletions libs/remix-ai-core/src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export interface IParams {
model?: string;
stop?: string[];
chatHistory?: any[];
version: string;
}

export enum AIRequestType {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
const refreshContext = useCallback(async (choice: typeof contextChoice) => {
try {
let files: string[] = []
_paq.push(['trackEvent', 'remixAI', 'AddingAIContext', choice])
switch (choice) {
case 'none':
await props.plugin.call('remixAI', 'setContextFiles', { context: 'none' })
Expand Down Expand Up @@ -369,6 +370,7 @@ export const RemixUiRemixAiAssistant = React.forwardRef<
setMessages([])
sendPrompt(`/setAssistant ${assistantChoice}`)
setAssistantChoice(assistantChoice || 'mistralai')
_paq.push(['trackEvent', 'remixAI', 'SetAIProvider', assistantChoice])
}
}
fetchAssistantChoice()
Expand Down Expand Up @@ -406,6 +408,7 @@ export const RemixUiRemixAiAssistant = React.forwardRef<

if (description && description.trim()) {
sendPrompt(`/generate ${description.trim()}`)
_paq.push(['trackEvent', 'remixAI', 'GenerateNewAIWorkspaceFromModal', description])
}
} catch {
/* user cancelled */
Expand Down