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

Add support for assistants streaming #686

Open
weaseldotro opened this issue Mar 14, 2024 · 2 comments
Open

Add support for assistants streaming #686

weaseldotro opened this issue Mar 14, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@weaseldotro
Copy link

The assistants API now supports streaming responses:

@weaseldotro weaseldotro added the enhancement New feature or request label Mar 14, 2024
@weaseldotro
Copy link
Author

I've forked this repo and quickly hacked a CreateRunStream function: weaseldotro@9ffb38f

This works for me just fine, but somebody should do a proper job with this, like add tests and docs and stuff.

@tanzyy96
Copy link

I also hacked something together on my own fork.

I had to add on streaming for some other endpoints like submitting tool outputs and just streaming from an existing thread.
(if interested, can take a look at SubmitToolsOutputStream, CreateRunStreaming and CreateThreadAndStream. I know, I know, the naming's kinda shite.

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