pull/5127/head
Stéphane Tetsing 5 months ago
parent 6e2eacdf52
commit 2de18de6fe
  1. 6
      apps/remix-ide/src/app/plugins/remixAIPlugin.tsx
  2. 2
      libs/remix-ui/remix-ai/src/lib/components/Default.tsx

@ -117,7 +117,7 @@ export class RemixAIPlugin extends ViewPlugin {
result = await this.remoteInferencer.solidity_answer(prompt)
}
if (result) this.call('terminal', 'log', { type: 'aitypewriterwarning', value: result })
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: "RemixAI Done" })
// this.call('terminal', 'log', { type: 'aitypewriterwarning', value: "RemixAI Done" })
}
async code_explaining(prompt: string): Promise<any> {
@ -136,7 +136,7 @@ export class RemixAIPlugin extends ViewPlugin {
result = await this.remoteInferencer.code_explaining(prompt)
}
if (result) this.call('terminal', 'log', { type: 'aitypewriterwarning', value: result })
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: "RemixAI Done" })
// this.call('terminal', 'log', { type: 'aitypewriterwarning', value: "RemixAI Done" })
}
async error_explaining(prompt: string): Promise<any> {
@ -154,7 +154,7 @@ export class RemixAIPlugin extends ViewPlugin {
result = await this.remoteInferencer.error_explaining(prompt)
}
if (result) this.call('terminal', 'log', { type: 'aitypewriterwarning', value: result })
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: "RemixAI Done" })
// this.call('terminal', 'log', { type: 'aitypewriterwarning', value: "RemixAI Done" })
}
async code_insertion(msg_pfx: string, msg_sfx: string): Promise<any> {

@ -70,7 +70,7 @@ export const Default = (props) => {
<button className="remix_ai_plugin_download_button text-ai pl-2 pr-0 py-0 d-flex"
onClick={async () => {
props.plugin.call("remixAI", 'initialize', DefaultModels()[3], DefaultModels()[7]);
props.plugin.call("remixAI", 'initialize');
}}
> Init Model </button>
</div>

Loading…
Cancel
Save