|
|
@ -2,6 +2,8 @@ import React, {useEffect, useState} from 'react' //eslint-disable-line |
|
|
|
import {CopyToClipboard} from '@remix-ui/clipboard' |
|
|
|
import {CopyToClipboard} from '@remix-ui/clipboard' |
|
|
|
import {helper} from '@remix-project/remix-solidity' |
|
|
|
import {helper} from '@remix-project/remix-solidity' |
|
|
|
import './renderer.css' |
|
|
|
import './renderer.css' |
|
|
|
|
|
|
|
const _paq = (window._paq = window._paq || []) |
|
|
|
|
|
|
|
|
|
|
|
interface RendererProps { |
|
|
|
interface RendererProps { |
|
|
|
message: any |
|
|
|
message: any |
|
|
|
opt?: any |
|
|
|
opt?: any |
|
|
@ -76,6 +78,7 @@ export const Renderer = ({message, opt = {}, plugin}: RendererProps) => { |
|
|
|
explain why the error occurred and how to fix it. |
|
|
|
explain why the error occurred and how to fix it. |
|
|
|
` |
|
|
|
` |
|
|
|
await plugin.call('openaigpt', 'message', message) |
|
|
|
await plugin.call('openaigpt', 'message', message) |
|
|
|
|
|
|
|
_paq.push(['trackEvent', 'GPTSupport', 'askGPT']) |
|
|
|
} catch (err) { |
|
|
|
} catch (err) { |
|
|
|
console.error('unable to askGtp') |
|
|
|
console.error('unable to askGtp') |
|
|
|
console.error(err) |
|
|
|
console.error(err) |
|
|
|