mirror of
https://github.com/langchain-ai/langserve.git
synced 2026-07-18 10:54:29 -04:00
RunnableWithMessageHistory does not work for RemoteRunnable #100
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @rever1and on GitHub (Jan 24, 2024).
Hi, I tried to use RunnableWithMessageHistory around RemoteRunnalble, but it failed to work
failed with
I checked the source code and find the configurable is not serializable.
https://github.com/langchain-ai/langserve/blob/a7c2a94bb78bd1ac193a031143b95fb6bae0eae3/langserve/client.py#L278
which is inserted into configurable by RunnableWithMessageHistory
https://github.com/langchain-ai/langchain/blob/9e95699277fe0db3bfee1654276a43bfba9ecc64/libs/core/langchain_core/runnables/history.py#L320
@eyurtsev commented on GitHub (Jan 25, 2024):
HI @rever1and, Would you be able to include a minimal reproducible example? (i.e., with all required imports etc) It'll make it easier for me to debug / and see how to resolve the issue.
@eyurtsev commented on GitHub (Jan 25, 2024):
Actually I might know what this is, will update once resolved
@rever1and commented on GitHub (Jan 25, 2024):
ok, but looks like you've already reproduce that...do you still need that now?
@eyurtsev commented on GitHub (Jan 26, 2024):
Thanks I'm all set will release fix in a few days
@eyurtsev commented on GitHub (Feb 1, 2024):
Closing issue as fix was merged and released.