Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Fix typo #719

Merged
merged 2 commits into from
Dec 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/chatbots/customer_support_small_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"do not try to answer the question directly or gather information.\n",
"Instead, immediately transfer them to the billing or technical team by asking the user to hold for a moment.\n",
"Otherwise, just respond conversationally.`;\n",
" const supportResponse = model.invoke([\n",
" const supportResponse = await model.invoke([\n",
" { role: \"system\", content: SYSTEM_TEMPLATE },\n",
" ...state.messages,\n",
" ]);\n",
Expand Down Expand Up @@ -181,7 +181,7 @@
" // Some chat models can return complex content, but Together will not\n",
" const categorizationOutput = JSON.parse(categorizationResponse.content as string);\n",
" // Will append the response message to the current interaction state\n",
" return { messages: supportResponse, nextRepresentative: categorizationOutput.nextRepresentative };\n",
" return { messages: [supportResponse], nextRepresentative: categorizationOutput.nextRepresentative };\n",
"};"
]
},
Expand Down
Loading