[Docs] Customer-Support Part 1: Configuration Fix (#623)

This commit is contained in:
William FH
2024-06-07 11:09:20 -07:00
committed by GitHub
parent 500a1abfeb
commit 88f367135e
@@ -1023,7 +1023,8 @@
"\n",
" def __call__(self, state: State, config: RunnableConfig):\n",
" while True:\n",
" passenger_id = config.get(\"passenger_id\", None)\n",
" configuration = config.get(\"configurable\", {})\n",
" passenger_id = configuration.get(\"passenger_id\", None)\n",
" state = {**state, \"user_info\": passenger_id}\n",
" result = self.runnable.invoke(state)\n",
" # If the LLM happens to return an empty response, we will re-prompt it\n",
@@ -1840,7 +1841,6 @@
"\n",
" def __call__(self, state: State, config: RunnableConfig):\n",
" while True:\n",
" passenger_id = config.get(\"passenger_id\", None)\n",
" result = self.runnable.invoke(state)\n",
" # If the LLM happens to return an empty response, we will re-prompt it\n",
" # for an actual response.\n",