-
Notifications
You must be signed in to change notification settings - Fork 704
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
Implement assistant API streaming #266
Comments
/bounty $15 |
💎 $15 bounty • CopilotKitSteps to solve:
Thank you for contributing to CopilotKit/CopilotKit! Add a bounty • Share on socials
|
Can I be assigned? |
/attempt #266 |
@Bhavyajain21 yes. |
Please assign |
@Bhavyajain21 it's assigned |
@ataibarkai Thanks for assigning |
@mme / @ataibarkai The provided documentation mentions streaming support but doesn't go into specific implementation details. It emphasizes the ability to continue conversations through threads, which aligns with the current code's approach. Is there anything different we are expecting out of it? |
Hi @Bhavyajain21 ! According to the OpenAI docs, there should be a new method available called createAndStream. Can you have a look at this method? You would need to update the openai package to the lastest version. |
Got that, thanks for the input! |
/attempt #266 Options |
1 similar comment
/attempt #266 Options |
/attempt #266 Options |
1 similar comment
/attempt #266 Options |
Is your feature request related to a problem? Please describe.
OpenAI just launched streaming support in the assistant API. CopilotKit should support streaming responses via the assistant API.
Describe the solution you'd like
Modify https://github.com/CopilotKit/CopilotKit/blob/main/CopilotKit/packages/backend/src/lib/openai-assistant-adapter.ts to use streaming. See: https://platform.openai.com/docs/assistants/overview?context=with-streaming
The text was updated successfully, but these errors were encountered: