Add askGpt method to plugin class

pull/5370/head
Joseph Izang 1 year ago committed by Aniket
parent d17a305517
commit 5e52821aa4
  1. 9
      apps/vyper/src/app/utils/remix-client.tsx

@ -60,6 +60,15 @@ export class RemixClient extends PluginClient {
}
}
async askGpt(message: string) {
try {
await this.client.call('openaigpt', 'message', message)
} catch (err) {
console.error('unable to askGpt')
console.error(err)
}
}
async cloneVyperRepo() {
try {
// @ts-ignore

Loading…
Cancel
Save