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
Not sure about the langserve underlying implementation. Here the streaming response is initiated in the browser correctly (with text/event-stream) from langchainJS, when the OpenAI API finishes, all the streaming events are returned.
Like if we were awaiting for the whole response and delivering at once (return instead of yield)
I was struggling to understand why a
RemoteRunnable.stream
was not working from langchain JS in the browserDisabling
GZipMiddleware
in FastAPI made it work again.Not sure if it's a Starlette/Uvicorn issue or LangServe but might be useful to fix/report.
The text was updated successfully, but these errors were encountered: