Skip to content

Commit

Permalink
fix wrong var name
Browse files Browse the repository at this point in the history
  • Loading branch information
yann300 authored and joeizang committed Nov 23, 2023
1 parent 2026999 commit 26de2f2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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]})
Expand Down

0 comments on commit 26de2f2

Please sign in to comment.