mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-27 17:35:07 +01:00
Don't reset research mode after completing research execution
This commit is contained in:
parent
c1c779a7ef
commit
cead1598b9
1 changed files with 1 additions and 2 deletions
|
@ -757,7 +757,6 @@ async def chat(
|
||||||
yield research_result
|
yield research_result
|
||||||
|
|
||||||
# researched_results = await extract_relevant_info(q, researched_results, agent)
|
# researched_results = await extract_relevant_info(q, researched_results, agent)
|
||||||
in_research_mode = False
|
|
||||||
logger.info(f"Researched Results: {researched_results}")
|
logger.info(f"Researched Results: {researched_results}")
|
||||||
|
|
||||||
for cmd in conversation_commands:
|
for cmd in conversation_commands:
|
||||||
|
@ -1022,7 +1021,7 @@ async def chat(
|
||||||
|
|
||||||
# Generate Output
|
# Generate Output
|
||||||
## Generate Image Output
|
## Generate Image Output
|
||||||
if ConversationCommand.Image in conversation_commands:
|
if ConversationCommand.Image in conversation_commands and not in_research_mode:
|
||||||
async for result in text_to_image(
|
async for result in text_to_image(
|
||||||
defiltered_query,
|
defiltered_query,
|
||||||
user,
|
user,
|
||||||
|
|
Loading…
Reference in a new issue