We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 610f72f commit 8bae8ffCopy full SHA for 8bae8ff
apps/remix-ide/src/app/plugins/openaigpt.tsx
@@ -39,6 +39,8 @@ export class OpenAIGpt extends Plugin {
39
40
if (result && result.choices && result.choices.length) {
41
this.call('terminal', 'log', { type: 'typewritersuccess', value: result.choices[0].message.content })
42
+ } else if (result.error) {
43
+ this.call('terminal', 'log', { type: 'typewritersuccess', value: result.error })
44
} else {
45
this.call('terminal', 'log', { type: 'typewritersuccess', value: 'No response...' })
46
}
0 commit comments