better message

pull/3850/head
yann300 2 years ago committed by Aniket
parent 2387a622e1
commit b3eef9cf58
  1. 6
      libs/remix-ui/renderer/src/lib/renderer.tsx

@ -71,11 +71,11 @@ export const Renderer = ({message, opt = {}, plugin}: RendererProps) => {
try {
const content = await plugin.call('fileManager', 'readFile', editorOptions.errFile)
const message = `
solidity file: ${content}
solidity code: ${content}
error message: ${messageText}
explain which line the error occured, the reason 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)
} catch (err) {
console.error('unable to askGtp')
console.error(err)

Loading…
Cancel
Save