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 7b422c2 commit cb9e4a9Copy full SHA for cb9e4a9
libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts
@@ -31,7 +31,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
31
}
32
let regex = new RegExp('\/\/(.*)\n ', 'g')
33
34
- const generativeComment = [...p.matchAll(regex)]
+ const generativeComment = [...word.matchAll(regex)]
35
if (generativeComment && generativeComment.length) {
36
// use the code generation model
37
const {data} = await axios.post('https://gpt-chat.remixproject.org/infer', {comment: generativeComment[generativeComment.length - 1]})
0 commit comments