Change context paramenter to improve GPT

pull/5370/head
ioedeveloper 10 months ago
parent 93213a7912
commit 0f25e6072c
  1. 6
      apps/circuit-compiler/src/app/components/container.tsx

@ -69,7 +69,7 @@ export function Container () {
const message = ` const message = `
solidity code: ${content} solidity code: ${content}
error message: ${error} error message: ${error}
context: ${JSON.stringify(report, null, 2)} full circom error: ${JSON.stringify(report, null, 2)}
explain why the error occurred and how to fix it. explain why the error occurred and how to fix it.
` `
// @ts-ignore // @ts-ignore
@ -77,7 +77,7 @@ export function Container () {
} else { } else {
const message = ` const message = `
error message: ${error} error message: ${error}
context: ${JSON.stringify(report, null, 2)} full circom error: ${JSON.stringify(report, null, 2)}
explain why the error occurred and how to fix it. explain why the error occurred and how to fix it.
` `
// @ts-ignore // @ts-ignore
@ -87,7 +87,7 @@ export function Container () {
const error = report.message const error = report.message
const message = ` const message = `
error message: ${error} error message: ${error}
context: ${JSON.stringify(report, null, 2)} full circom error: ${JSON.stringify(report, null, 2)}
explain why the error occurred and how to fix it. explain why the error occurred and how to fix it.
` `
// @ts-ignore // @ts-ignore

Loading…
Cancel
Save