Streaming does not function properly with withHistory and JsonOutputParser(). #5770
yassinemellouki
started this conversation in
General
Replies: 1 comment
-
Hi Yassine, Did you find a solution to this problem ? I have exactly the same using PostgresChatMessageHistory (supabase). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I use stream method of RunnableWithMessageHistory and JsonOutputParser for output. but I received this error
Error in handler RootListenersTracer, handleChainEnd: Error: Expected a string, BaseMessage, or array of BaseMessages. Received: undefined
and the history is not saved. the next invoke or stream does not taking into account the previous request (stream)
my code:
config:
stream:
withHistory.stream({ lang, input }, config);
Beta Was this translation helpful? Give feedback.
All reactions