mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-05 21:29:11 +00:00
Return data sources to use if exception in data source chat actor
Previously no value was returned if an exception got triggered when collecting information sources to search.
This commit is contained in:
@@ -353,13 +353,13 @@ async def aget_relevant_information_sources(
|
||||
final_response = [ConversationCommand.Default]
|
||||
else:
|
||||
final_response = [ConversationCommand.General]
|
||||
return final_response
|
||||
except Exception as e:
|
||||
except Exception:
|
||||
logger.error(f"Invalid response for determining relevant tools: {response}")
|
||||
if len(agent_tools) == 0:
|
||||
final_response = [ConversationCommand.Default]
|
||||
else:
|
||||
final_response = agent_tools
|
||||
return final_response
|
||||
|
||||
|
||||
async def aget_relevant_output_modes(
|
||||
|
||||
Reference in New Issue
Block a user