Skip to content

Commit

Permalink
show error message
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 authored Nov 17, 2023
1 parent df1ab29 commit 146bd45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions apps/remix-ide/src/app/plugins/openaigpt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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...' })
}
Expand Down

0 comments on commit 146bd45

Please sign in to comment.