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

[Request]: Implement Streaming Responses #15

Closed
ericrallen opened this issue Aug 28, 2023 · 5 comments · Fixed by #20
Closed

[Request]: Implement Streaming Responses #15

ericrallen opened this issue Aug 28, 2023 · 5 comments · Fixed by #20
Labels
enhancement New feature or request good first issue Good for newcomers released

Comments

@ericrallen
Copy link
Member

Is your feature request related to a problem? Please describe.

Responses take too long to deliver to the UI.

Describe the solution you'd like

Now that OpenAI has added streaming support to the openai npm package, switch to streaming responses to the UI.

@ericrallen ericrallen added enhancement New feature or request good first issue Good for newcomers labels Aug 28, 2023
@yigitkonur
Copy link

There hasn't been any improvement in this repo for the past few months - I hope you haven't lost your motivation. I think what you're doing in this field is truly valuable. I hope you create a way for us to boost your motivation here by allowing us to contribute as sponsors <3

@ericrallen
Copy link
Member Author

@yigitkonur I really appreciate the kind words. It’s awesome to know that someone is using and enjoying the stuff I’ve built.

I promise that I haven’t abandoned AI Research Assistant - I still use it almost daily and plan to have some updates ready to release after the next couple of weeks are over.

I still have plans to add streaming responses, but it requires a little more work than just enabling the stream: true option because when I started this project there weren’t SDKs for the API, the chat completions endpoint didn’t exist, and there were very few examples of how to handle steaming responses, so the chat logic needs some refactoring to support properly rendering chunks.

It’s been just over a month since v 1.5.0 - which added the GPT-4 model and hot-swapping models during a conversation - was released.

Since then I’ve taken a much needed vacation, and it’s been a busy time where I’ve had a lot of other work to take care of like:

Contributing to Open Interpreter has helped me consider and reprioritize some features for AI Research Assistant, but I’d love to know what my users want and need.

Please feel encouraged to provide suggestions for features as Issues or start a Discussion so I know what folks are looking for from AI Research Assistant.

@yigitkonur
Copy link

Great developments, Eric - I certainly don't underestimate your effort, you're producing excellent work. I can imagine that implementing the stream section wasn't easy - it seems like you've been through a busy period and you're still producing great results. As someone who believes in the future of this project, I wouldn't want you to feel any pressure on yourself, I just want to show my support 🙏

ericrallen added a commit that referenced this issue Oct 9, 2023
Closes #15

Breaking Changes: updates to OpenAI 4.0 and stream: true
ericrallen added a commit that referenced this issue Oct 10, 2023
Closes #15

Breaking Changes: updates to OpenAI 4.0 and stream: true
ericrallen added a commit that referenced this issue Oct 10, 2023
Closes #15

Breaking Changes: updates to OpenAI 4.0 and stream: true
github-actions bot pushed a commit that referenced this issue Oct 10, 2023
# [1.6.0](1.5.0...1.6.0) (2023-10-10)

### Bug Fixes

* update tsc errors so build can succeed ([a43d30f](a43d30f))

### Features

* update with streaming responses from OpenAI ([fec3fa0](fec3fa0)), closes [#15](#15)
@github-actions
Copy link

🎉 This issue has been resolved in version 1.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@ericrallen
Copy link
Member Author

@yigitkonur Streaming responses from OpenAI should be available in the latest version of AI Research Assistant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants