Skip to content

Commit 405ba95

Browse files
joeizangyann300
authored andcommitted
patch inlineCompletionProvider
1 parent 4944c93 commit 405ba95

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
3636
const generativeComment = [...word.matchAll(regex)]
3737
if (generativeComment && generativeComment.length) {
3838
// use the code generation model
39-
const {data} = await axios.post('https://gpt-chat.remixproject.org/infer', {comment: generativeComment[generativeComment.length - 1]})
39+
const {data} = await axios.post('https://gpt-chat.remixproject.org/infer', {comment: generativeComment[generativeComment.length - 1][1]})
4040
const item: monacoTypes.languages.InlineCompletion = {
4141
insertText: data
4242
};

0 commit comments

Comments
 (0)