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 bdd386b commit 392f003Copy full SHA for 392f003
libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts
@@ -45,8 +45,9 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
45
if (generativeComment && generativeComment.length) {
46
// use the code generation model
47
const {data} = await axios.post('https://gpt-chat.remixproject.org/infer', {comment: generativeComment[generativeComment.length - 1][1]})
48
+ const parsedData = JSON.parse(data)
49
const item: monacoTypes.languages.InlineCompletion = {
- insertText: data
50
+ insertText: parsedData
51
};
52
return {
53
items: [item],
0 commit comments