Skip to content

Commit

Permalink
replace force with any
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoLB0 committed Jun 11, 2024
1 parent 46b61de commit 8e8496b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mistral-search-engine.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,7 @@
"while True:\n",
" input_ = input(\"Ask: \")\n",
" messages.append(ChatMessage(role=\"user\", content=input_))\n",
" response = client.chat(model=model, messages=messages, tools=tools, tool_choice=\"force\")\n",
" response = client.chat(model=model, messages=messages, tools=tools, tool_choice=\"any\")\n",
" messages.append(response.choices[0].message)\n",
" print(response.choices[0].message.content)\n",
" tool_call = response.choices[0].message.tool_calls[0]\n",
Expand Down

0 comments on commit 8e8496b

Please sign in to comment.