-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): add
EventSource
protocol (#150)
* ➕ add sse-starlette dependency ➕ add httpx-sse dependency for unit tests * 🔨 add py.typed * ♻️ refactor StreamingResponse class use sse_starlette.EventSourceResponse instead of fastapi.responses.StreamingResponse send 500 error event when chain execution fails * ⚡ update base callback handlers use ServerSentEvent to construct message * 🐛 fix ensure_bytes bugs * ✅ update unit test * 🐛 fix streaming_response bug * 💡 update docstrings
- Loading branch information
Showing
6 changed files
with
72 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters