Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text typing speed #4

Open
johannesCmayer opened this issue Aug 4, 2023 · 2 comments
Open

Text typing speed #4

johannesCmayer opened this issue Aug 4, 2023 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@johannesCmayer
Copy link

I have just started to experiment with your plugin and it seems very promising, interesting and powerful.

However, one thing that's really bad in my opinion is this slow typing out of the text once you submit the query to GPT. Would it not be possible to just display the text at whatever speed the API returns it? The openAI API does have a streaming functionality.

@solderneer solderneer self-assigned this Aug 5, 2023
@solderneer
Copy link
Owner

Yea as I've used the plugin more and more, it's been annoying me too. I am aware of the stream functionality, but for some reason I can't remember when I was hacking this out 3 weeks ago I was stuck on getting it to work properly.

In release 1.1.4, the typing speed is faster now as a temporary solution. When I get sometime later this weekend, I'll look into this. Or if you'd like, I'd welcome a pull request!

@solderneer solderneer added the enhancement New feature or request label Aug 5, 2023
@johannesCmayer
Copy link
Author

johannesCmayer commented Aug 5, 2023

Well just pasting the text instantly once you get the full blob without streaming would also be a solution, which might be easier to implement. Streaming could be added later of cause. I implemented streaming like this:

This might not be helpful at all because my code is messy, and the structure is probably very different from your thing because mine is just a CLI app.

@solderneer solderneer added this to the 1.2.0 milestone Aug 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants