Add askGpt method to plugin class

pull/4571/head
Joseph Izang 9 months ago committed by Aniket
parent 3ca083066d
commit dfff0b02a8
  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() { async cloneVyperRepo() {
try { try {
// @ts-ignore // @ts-ignore

Loading…
Cancel
Save