Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -577,8 +577,8 @@ def followup_agent(query: FollowupQueryModel, background_tasks: BackgroundTasks,
|
|
577 |
def process_response():
|
578 |
full_response = ""
|
579 |
for content in chat_with_llama_stream(limited_conversation, model=query.model_id):
|
580 |
-
full_response += content
|
581 |
yield content
|
|
|
582 |
|
583 |
logger.info(f"LLM RAW response for query: {query.query}: {full_response}")
|
584 |
response_content, interact, tools = parse_followup_and_tools(full_response)
|
@@ -603,6 +603,7 @@ def followup_agent(query: FollowupQueryModel, background_tasks: BackgroundTasks,
|
|
603 |
yield "<report>"
|
604 |
for content in search_response():
|
605 |
yield content
|
|
|
606 |
yield "</report>"
|
607 |
|
608 |
background_tasks.add_task(update_db, query.user_id, query.conversation_id, query.query, full_response)
|
|
|
577 |
def process_response():
|
578 |
full_response = ""
|
579 |
for content in chat_with_llama_stream(limited_conversation, model=query.model_id):
|
|
|
580 |
yield content
|
581 |
+
full_response += content
|
582 |
|
583 |
logger.info(f"LLM RAW response for query: {query.query}: {full_response}")
|
584 |
response_content, interact, tools = parse_followup_and_tools(full_response)
|
|
|
603 |
yield "<report>"
|
604 |
for content in search_response():
|
605 |
yield content
|
606 |
+
full_response += content
|
607 |
yield "</report>"
|
608 |
|
609 |
background_tasks.add_task(update_db, query.user_id, query.conversation_id, query.query, full_response)
|