mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-21 06:14:37 +00:00
docs: Fix typo in chat_history.ipynb (#30405)
`repsonse` should be `response`
This commit is contained in:
parent
5700646cc5
commit
f657b19a24
@ -163,7 +163,7 @@
|
|||||||
" ai_message = model.invoke(messages)\n",
|
" ai_message = model.invoke(messages)\n",
|
||||||
" # Finally, update the chat message history to include\n",
|
" # Finally, update the chat message history to include\n",
|
||||||
" # the new input message from the user together with the\n",
|
" # the new input message from the user together with the\n",
|
||||||
" # repsonse from the model.\n",
|
" # response from the model.\n",
|
||||||
" # highlight-next-line\n",
|
" # highlight-next-line\n",
|
||||||
" chat_history.add_messages(state[\"messages\"] + [ai_message])\n",
|
" chat_history.add_messages(state[\"messages\"] + [ai_message])\n",
|
||||||
" return {\"messages\": ai_message}\n",
|
" return {\"messages\": ai_message}\n",
|
||||||
@ -254,7 +254,7 @@
|
|||||||
" ai_message = model.invoke(messages)\n",
|
" ai_message = model.invoke(messages)\n",
|
||||||
" # Finally, update the chat message history to include\n",
|
" # Finally, update the chat message history to include\n",
|
||||||
" # the new input message from the user together with the\n",
|
" # the new input message from the user together with the\n",
|
||||||
" # repsonse from the model.\n",
|
" # response from the model.\n",
|
||||||
" chat_history.add_messages(state[\"messages\"] + [ai_message])\n",
|
" chat_history.add_messages(state[\"messages\"] + [ai_message])\n",
|
||||||
" # hilight-end\n",
|
" # hilight-end\n",
|
||||||
" return {\"messages\": ai_message}\n",
|
" return {\"messages\": ai_message}\n",
|
||||||
|
Loading…
Reference in New Issue
Block a user