You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
provides an implementation that can be shared across other providers (Anthropic, OpenAI, etc)
Implements more of the SSE "standard" (eg, includes event names, does proper splitting, catches message overflow between "masterchunks", etc)
Allows easy extensibility for users (to choose the sink, logging, etc.)
Downsides
Opinionated
Extra-dependency (lightweight though)
By default, it builds the standard Response afterwards (to allow standard downstream functionality as well), which might be wasteful for some users/workflows (but the cost and time are sooo tiny compared to the generation time)
I've been using it in PromptingTools.jl for a few releases already and it seems to work well.
The text was updated successfully, but these errors were encountered:
I would say it's probably better to separate them out -- I'd be happy to see StreamingCallbacks.jl implemented here. As to this point:
By default, it builds the standard Response afterwards (to allow standard downstream functionality as well), which might be wasteful for some users/workflows (but the cost and time are sooo tiny compared to the generation time)
Not a concern on my end, if anything that strikes me as pretty ergonomic.
I would like to propose moving streaming functionality to a separate package (made by me): https://github.com/svilupp/StreamCallbacks.jl
Why?
Downsides
I've been using it in PromptingTools.jl for a few releases already and it seems to work well.
The text was updated successfully, but these errors were encountered: