mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-01 02:43:37 +00:00
Docs: 'memory' -> 'history' typo. (#12779)
The 'MessagesPlaceholder' expects 'history' but 'RunnablePassthrough' is assigning 'memory'.
This commit is contained in:
parent
1f7e811156
commit
25ee10ed4f
@ -73,7 +73,7 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"chain = (\n",
|
"chain = (\n",
|
||||||
" RunnablePassthrough.assign(\n",
|
" RunnablePassthrough.assign(\n",
|
||||||
" memory=RunnableLambda(memory.load_memory_variables) | itemgetter(\"history\")\n",
|
" history=RunnableLambda(memory.load_memory_variables) | itemgetter(\"history\")\n",
|
||||||
" )\n",
|
" )\n",
|
||||||
" | prompt\n",
|
" | prompt\n",
|
||||||
" | model\n",
|
" | model\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user