tecuts commited on
Commit
5b9aaf5
·
verified ·
1 Parent(s): 8b847a6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -199,7 +199,7 @@ async def generate_streaming_response(messages: List[Dict], use_search: bool, te
199
 
200
  if use_search:
201
  llm_kwargs["tools"] = available_tools
202
- llm_kwargs["tool_choice"] = "auto"
203
 
204
  source_links = []
205
  response_content = ""
 
199
 
200
  if use_search:
201
  llm_kwargs["tools"] = available_tools
202
+ llm_kwargs["tool_choice"] = "required"
203
 
204
  source_links = []
205
  response_content = ""