8000 Add stream support via Server-Side Events (SSE) by 0x1eef · Pull Request #76 · llmrb/llm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add stream support via Server-Side Events (SSE) #76

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

Merged
merged 2 commits into from
May 27, 2025
Merged

Add stream support via Server-Side Events (SSE) #76

merged 2 commits into from
May 27, 2025

Conversation

0x1eef
Copy link
Member
@0x1eef 0x1eef commented May 24, 2025

This change reaches a milestone in llm.rb's journey with support
finally added for streaming. All providers are supported, and streaming
is implemented on top of Server-Side Events (SSE). We expect that the
interface will evolve over time to support yielding a message to a Proc
but for now you can stream to an IO-like object, or enable streaming
without an IO object

@0x1eef 0x1eef requested a review from antaz May 24, 2025 14:03
@0x1eef 0x1eef force-pushed the stream branch 2 times, most recently from e66ac9c to 1c73ef3 Compare May 25, 2025 15:30
@0x1eef 0x1eef changed the title Add stream support (SSE) Add stream support via Server-Side Events (SSE) May 25, 2025
This change reaches a milestone in llm.rb's journey with support
finally added for streaming. All providers are supported, and streaming
is implemented on top of Server-Side Events (SSE).

We expect that the interface will evolve over time to support yielding
a message to a Proc but for now you can stream to an IO-like object,
or enable streaming without an IO object.
@0x1eef 0x1eef merged commit 2d979fb into main May 27, 2025
3 checks passed
@0x1eef 0x1eef deleted the stream branch May 27, 2025 02:24
@0x1eef
Copy link
Member Author
0x1eef commented May 27, 2025

cc @antaz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0