From ed197aa3c26578a75334b8036ab9aa45baf9750f Mon Sep 17 00:00:00 2001 From: STetsing <41009393+STetsing@users.noreply.github.com> Date: Mon, 7 Oct 2024 15:19:40 +0200 Subject: [PATCH] remix desktop sanity check --- apps/remix-ide/src/app/plugins/remixAIPlugin.tsx | 10 +--------- apps/remixdesktop/src/plugins/remixAIDektop.ts | 5 ----- 2 files changed, 1 insertion(+), 14 deletions(-) diff --git a/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx b/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx index 0fd0917d08..312352cb46 100644 --- a/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx +++ b/apps/remix-ide/src/app/plugins/remixAIPlugin.tsx @@ -37,15 +37,7 @@ export class RemixAIPlugin extends Plugin { } onActivation(): void { - if (this.isOnDesktop) { - console.log('Activating RemixAIPlugin on desktop') - this.on(this.remixDesktopPluginName, 'activated', () => { - this.call("remixAI", 'initialize', null, null, null, false); - }) - } else { - console.log('Activating RemixAIPlugin on browser') - this.initialize() - } + this.initialize(null, null, null, false) } async initialize(model1?:IModel, model2?:IModel, remoteModel?:IRemoteModel, useRemote?:boolean){ diff --git a/apps/remixdesktop/src/plugins/remixAIDektop.ts b/apps/remixdesktop/src/plugins/remixAIDektop.ts index d494300780..30e58a8e4e 100644 --- a/apps/remixdesktop/src/plugins/remixAIDektop.ts +++ b/apps/remixdesktop/src/plugins/remixAIDektop.ts @@ -40,12 +40,10 @@ class RemixAIDesktopPluginClient extends ElectronBasePluginClient { desktopInferencer:InferenceManager | RemoteInferencer = null constructor (webContentsId: number, profile: Profile){ - console.log("loading the remix plugin client ........................") super(webContentsId, profile) } async onActivation(): Promise { - console.log("Activation", "loaded the remix plugin client application side") this.onload(() => { }) } @@ -57,16 +55,13 @@ class RemixAIDesktopPluginClient extends ElectronBasePluginClient { async initializeModelBackend(local, generalModel?, completionModel?){ if (!local){ - console.log('RemixAI remote enpoints') this.desktopInferencer = new RemoteInferencer() } else if (generalModel || completionModel){ if (!this.desktopInferencer){ - console.log('RemixAI local enpoints') this.desktopInferencer = InferenceManager.getInstance(this.modelCacheDir) if (this.desktopInferencer instanceof InferenceManager && generalModel) await this.desktopInferencer.init(generalModel) if (this.desktopInferencer instanceof InferenceManager && completionModel) await this.desktopInferencer.init(completionModel) } else { - console.log('Inference model already initialized') return false // do not set event listener twice } } else {