-
Notifications
You must be signed in to change notification settings - Fork 9
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
feat: Streaming w/ Tools #117
Comments
This presumably meaning the https://sdk.vercel.ai/docs/ai-sdk-ui/stream-protocol protocol? |
@artob I'm not sure. Currently all the LLM providers support streaming via SSE: https://github.com/ksylvest/omniai/blob/main/lib/omniai/chat/stream.rb The challenging bit is how tool-call messages are chunked. For example, OpenAI sends through through like this:
I think we'd need some basic understanding that a chunk is for a tool call - then not yield it back immediately, but collect the entire tool call and perform it. |
Right now streaming + tools isn't supported. The API needs to be adjusted to support.
The text was updated successfully, but these errors were encountered: