Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

I want to write a C++ openai API to streaming LLM generated result. Since most GPT like streaming API use SSE protocal. Does libhv support it? And any example?

You must be logged in to vote

Replies: 2 comments · 1 reply

Comment options

ctx->writer->SSEvent(szTime);

You must be logged in to vote
1 reply
@qZhang88
Comment options

this seems to be server side sending event, any example for SSE client handle?

Comment options

this seems to be server side sending event, any example for SSE client handle?

Try to set HttpRequest::http_cb to recv data.

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
🙏
Q&A
Labels
None yet
2 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.