vscode-openai icon indicating copy to clipboard operation
vscode-openai copied to clipboard

Feature Request: Streamed code completions in the VS code editor

Open lotek4u opened this issue 1 year ago • 1 comments

I realize this is a tall ask, but I looked around and didn't see any other discussions about this feature. I could have missed a previous discussion somewhere, or maybe it's just impossible...

However, I just noticed that an example of streaming completions was recently published by Open AI. Maybe this makes it a possibility, or perhaps not. I but wanted to at least ask so you can give your thoughts on the possibilities.

https://github.com/openai/openai-cookbook/blob/main/examples/How_to_stream_completions.ipynb

Thanks, Nick

lotek4u avatar Feb 02 '24 21:02 lotek4u

Hi @lotekjunky sorry for the delayed response. I've changed country recently, and that's taken up most of my time. It's a good suggestion. I want to switch to streaming, but how vscode interacts with webviews makes the implementation tricky. I'll look into this feature and see if it's feasible.

arbs-io avatar Feb 24 '24 16:02 arbs-io

Hi @lotek4u Streaming isn't feasible with the way that vscode and webview work (currently). I've added a response indicator to help know that the request is still being processed.

arbs-io avatar Jun 28 '24 06:06 arbs-io