fix wrong var name

pull/4253/head
yann300 12 months ago
parent 7b422c2a53
commit cb9e4a9015
  1. 2
      libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts

@ -31,7 +31,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
}
let regex = new RegExp('\/\/(.*)\n ', 'g')
const generativeComment = [...p.matchAll(regex)]
const generativeComment = [...word.matchAll(regex)]
if (generativeComment && generativeComment.length) {
// use the code generation model
const {data} = await axios.post('https://gpt-chat.remixproject.org/infer', {comment: generativeComment[generativeComment.length - 1]})

Loading…
Cancel
Save