Always get KeyError when passing a configurable param via curl or RemoteRunnable but works fine invoking the chain directly. #508
Unanswered
ildiopantofola
asked this question in
Q&A
Replies: 1 comment
-
Looks correct based as I can tell, so would need more context to help. I'd recommend testing with this example: https://github.com/langchain-ai/langserve/tree/main/examples/chat_with_persistence It's working for me and passes session ID in exactly the same way. Perhaps it'll help identify the issue -- I'm guessing there's some minor typo somewhere? (Try maybe adding a trailing |
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 have a langchain LLM chain linked to a route of a FastAPI server. I used langserve add_route() method. As I have session_id passed as "configurable" param and everything works when I invoke the chain directly like:
But if I want to use curl or calling using RemoteRunnable, I always get a KeyError: 'session_id'.
I tried many ways but with no success:
But none is working, it never recognizes the session_id param. What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions