Docs: 'memory' -> 'history' typo. (#12779)

The 'MessagesPlaceholder' expects 'history' but 'RunnablePassthrough' is
assigning 'memory'.
This commit is contained in:
니콜라스
2023-11-03 05:09:39 +09:00
committed by GitHub
parent 1f7e811156
commit 25ee10ed4f

View File

@@ -73,7 +73,7 @@
"source": [
"chain = (\n",
" RunnablePassthrough.assign(\n",
" memory=RunnableLambda(memory.load_memory_variables) | itemgetter(\"history\")\n",
" history=RunnableLambda(memory.load_memory_variables) | itemgetter(\"history\")\n",
" )\n",
" | prompt\n",
" | model\n",