Merge pull request #4250 from ethereum/yann300-patch-51

show error message
pull/4247/head
yann300 12 months ago committed by GitHub
commit be8f428028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      apps/remix-ide/src/app/plugins/openaigpt.tsx

@ -39,6 +39,8 @@ export class OpenAIGpt extends Plugin {
if (result && result.choices && result.choices.length) {
this.call('terminal', 'log', { type: 'typewritersuccess', value: result.choices[0].message.content })
} else if (result.error) {
this.call('terminal', 'log', { type: 'typewritersuccess', value: result.error })
} else {
this.call('terminal', 'log', { type: 'typewritersuccess', value: 'No response...' })
}

Loading…
Cancel
Save