Code completion operation in editor inlayModel as a streaming effect
Answered
I want to complete the code of the plugin in editor inlayModel as a streaming effect. Do you have any documentation or materials to read? I don't have any direction yet
Please sign in to leave a comment.
Hi,
Please fully describe your use case. It is unclear what the “streaming effect” is.
hi,Karol Lewandowski,Sorry, I may not have expressed myself clearly. When it comes to chat Q&A, it's a streaming response. I want to complete the code, also as a stream, by displaying it in the cursor at the location of the code completion
For example, TabNine code completion directly returns the entire code, but what I want to do is stream based return
If I understand you correctly, you want your text to appear token by token, like in, for example, ChatGPT. I don't think there is an API to achieve that.
For inline code completion, see
com.intellij.codeInsight.inline.completion.InlineCompletionProvider
.You can find example implementations on IntelliJ Platform Explorer: https://plugins.jetbrains.com/intellij-platform-explorer/extensions?extensions=com.intellij.inline.completion.provider
hi,Karol Lewandowski,Have you ever used TONGYI Lingma? His code completion supports streaming. If there is no API support, I guess it is possible that the model returns a stream, and we handle the stream and then do the processing. Is this possible
Hi,
No, I didn't use this plugin and still don't understand what the mentioned streaming means.
Please be more specific because we are wasting time on redundant communication. Thank you for understanding.
hi,Karol Lewandowski,Sorry, if I could post a video, I might see the desired effect. Because it is this plugin that can complete code into a streaming effect. It's okay, I'll study it myself. Thank you