mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Remove summarize condition for only 1 file filter
This commit is contained in:
parent
362bdebd02
commit
a27b8d3e54
1 changed files with 0 additions and 4 deletions
|
@ -801,10 +801,6 @@ async def chat(
|
||||||
response_log = "No files selected for summarization. Please add files using the section on the left."
|
response_log = "No files selected for summarization. Please add files using the section on the left."
|
||||||
async for result in send_llm_response(response_log):
|
async for result in send_llm_response(response_log):
|
||||||
yield result
|
yield result
|
||||||
elif len(file_filters) > 1 and not agent_has_entries:
|
|
||||||
response_log = "Only one file can be selected for summarization."
|
|
||||||
async for result in send_llm_response(response_log):
|
|
||||||
yield result
|
|
||||||
else:
|
else:
|
||||||
async for response in generate_summary_from_files(
|
async for response in generate_summary_from_files(
|
||||||
q=q,
|
q=q,
|
||||||
|
|
Loading…
Reference in a new issue