Is it possible to handle the response from app.chat asynchronously #1874
Unanswered
leonballoniMakes
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I`m building an app with FastApi and EmbedChain chat functionality that is sending the whole text at the return/end of the function call. Is there a way to stream the response, since there is the Stream option at config, but the function app.chat is sync (not a generator or async iterator) making it unable to return the string piece by piece.
Here is my code for study:
Route:
Beta Was this translation helpful? Give feedback.
All reactions