mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 11:58:34 +02:00
Fix no-search assistants with DISABLE_LLM_CHOOSE_SEARCH enabled
This commit is contained in:
parent
81aada7c0f
commit
5a75470d23
@ -452,7 +452,9 @@ def stream_chat_message_objects(
|
||||
PreviousMessage.from_chat_message(msg, files) for msg in history_msgs
|
||||
],
|
||||
tools=tools,
|
||||
force_use_tool=_check_should_force_search(new_msg_req),
|
||||
force_use_tool=(
|
||||
_check_should_force_search(new_msg_req) if search_tool else None
|
||||
),
|
||||
)
|
||||
|
||||
reference_db_search_docs = None
|
||||
|
Loading…
x
Reference in New Issue
Block a user