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 4944c93 commit 405ba95Copy full SHA for 405ba95
libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts
@@ -36,7 +36,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
36
const generativeComment = [...word.matchAll(regex)]
37
if (generativeComment && generativeComment.length) {
38
// use the code generation model
39
- const {data} = await axios.post('https://gpt-chat.remixproject.org/infer', {comment: generativeComment[generativeComment.length - 1]})
+ const {data} = await axios.post('https://gpt-chat.remixproject.org/infer', {comment: generativeComment[generativeComment.length - 1][1]})
40
const item: monacoTypes.languages.InlineCompletion = {
41
insertText: data
42
};
0 commit comments