docs: Fix typo in chat_history.ipynb (#30405)

`repsonse` should be `response`
This commit is contained in:
Jojo
2025-03-21 08:45:31 -07:00
committed by GitHub
parent 5700646cc5
commit f657b19a24

View File

@@ -163,7 +163,7 @@
" ai_message = model.invoke(messages)\n",
" # Finally, update the chat message history to include\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",
" chat_history.add_messages(state[\"messages\"] + [ai_message])\n",
" return {\"messages\": ai_message}\n",
@@ -254,7 +254,7 @@
" ai_message = model.invoke(messages)\n",
" # Finally, update the chat message history to include\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",
" # hilight-end\n",
" return {\"messages\": ai_message}\n",