added documentation generation

pull/4809/head
Stéphane Tetsing 6 months ago committed by Aniket
parent b8eae1d74f
commit a0713d6d8d
  1. 4
      libs/remix-ui/editor/src/lib/remix-ui-editor.tsx

@ -723,8 +723,8 @@ export const EditorUI = (props: EditorUIProps) => {
const file = await props.plugin.call('fileManager', 'getCurrentFile')
const content = await props.plugin.call('fileManager', 'readFile', file)
const message = intl.formatMessage({ id: 'editor.generateDocumentationByAI' }, { content, currentFunction: currentFunction.current })
await props.plugin.call('openaigpt', 'message', message)
_paq.push(['trackEvent', 'ai', 'openai', 'generateDocumentation'])
await props.plugin.call('solcoder', 'code_explaining', message)
_paq.push(['trackEvent', 'ai', 'solcoder', 'generateDocumentation'])
},
}

Loading…
Cancel
Save