patch inlineCompletionProvider

pull/4253/head
Joseph Izang 1 year ago committed by yann300
parent 4944c93daf
commit 405ba952f5
  1. 2
      libs/remix-ui/editor/src/lib/providers/inlineCompletionProvider.ts

@ -36,7 +36,7 @@ export class RemixInLineCompletionProvider implements monacoTypes.languages.Inli
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]})
const {data} = await axios.post('https://gpt-chat.remixproject.org/infer', {comment: generativeComment[generativeComment.length - 1][1]})
const item: monacoTypes.languages.InlineCompletion = {
insertText: data
};

Loading…
Cancel
Save