pull/5370/head
Stéphane Tetsing 6 months ago
parent fc306dc2f5
commit 1038184ade
  1. 2
      apps/circuit-compiler/src/app/components/feedbackAlert.tsx
  2. 6
      apps/remix-ide/src/app/plugins/solcoderAI.tsx
  3. 2
      apps/vyper/src/app/components/CompileErrorCard.tsx
  4. 2
      libs/remix-ui/renderer/src/lib/renderer.tsx

@ -24,7 +24,7 @@ export function FeedbackAlert ({ message, askGPT }: FeedbackAlertProps) {
<span className="border border-success text-success btn-sm" onClick={(e) => {
e.stopPropagation()
askGPT()
}}>Ask Remix AI</span>
}}>Ask RemixAI</span>
</div>
</>
</RenderIf>

@ -80,7 +80,7 @@ export class SolCoder extends Plugin {
async solidity_answer(prompt): Promise<any> {
this.emit("aiInfering")
this.call('layout', 'maximizeTerminal')
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for Remix AI answer...` })
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for RemixAI answer...` })
_paq.push(['trackEvent', 'ai', 'solcoder', 'answering'])
let result
@ -117,7 +117,7 @@ export class SolCoder extends Plugin {
async code_explaining(prompt, context:string=""): Promise<any> {
this.emit("aiInfering")
this.call('layout', 'maximizeTerminal')
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for Remix AI answer...` })
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for RemixAI answer...` })
_paq.push(['trackEvent', 'ai', 'solcoder', 'explaining'])
let result
@ -233,7 +233,7 @@ export class SolCoder extends Plugin {
async error_explaining(prompt): Promise<any> {
this.emit("aiInfering")
this.call('layout', 'maximizeTerminal')
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for Remix AI answer...` })
this.call('terminal', 'log', { type: 'aitypewriterwarning', value: `\n\nWaiting for RemixAI answer...` })
_paq.push(['trackEvent', 'ai', 'solcoder', 'explaining'])
let result

@ -21,7 +21,7 @@ export function CompileErrorCard(props: { output: any, plugin: RemixClient }) {
<div className="d-flex flex-column pt-3 align-items-end mb-2">
<div>
<span className="border border-ai text-ai btn-sm" onClick={async () => await props.plugin.askGpt(props.output.message)}>
Ask Remix AI
Ask RemixAI
</span>
<span className="ml-3 pt-1 py-1">
<CopyToClipboard content={props.output.message} className={`p-0 m-0 far fa-copy alert alert-danger`} direction={'top'} />

@ -111,7 +111,7 @@ export const Renderer = ({ message, opt = {}, plugin }: RendererProps) => {
onClick={() => { askGtp() }}
style={{ borderColor: "var(--ai)" }}
>
Ask Remix AI
Ask RemixAI
</span>
</div>

Loading…
Cancel
Save