mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 18:47:11 +00:00
Remove commented out code blocks
This commit is contained in:
parent
df855adc98
commit
2b32f0e80d
1 changed files with 0 additions and 38 deletions
|
@ -1128,14 +1128,6 @@ async def chat(
|
||||||
yield result
|
yield result
|
||||||
else:
|
else:
|
||||||
generated_images.append(generated_image)
|
generated_images.append(generated_image)
|
||||||
# content_obj = {
|
|
||||||
# "intentType": intent_type,
|
|
||||||
# "inferredQueries": [improved_image_prompt],
|
|
||||||
# "image": generated_image,
|
|
||||||
# }
|
|
||||||
# async for result in send_llm_response(json.dumps(content_obj), tracer.get("usage")):
|
|
||||||
# yield result
|
|
||||||
# return
|
|
||||||
|
|
||||||
async for result in send_event(
|
async for result in send_event(
|
||||||
ChatEvent.GENERATED_ASSETS,
|
ChatEvent.GENERATED_ASSETS,
|
||||||
|
@ -1191,36 +1183,6 @@ async def chat(
|
||||||
async for result in send_event(ChatEvent.STATUS, error_message):
|
async for result in send_event(ChatEvent.STATUS, error_message):
|
||||||
yield result
|
yield result
|
||||||
|
|
||||||
# content_obj = {
|
|
||||||
# "intentType": intent_type,
|
|
||||||
# "inferredQueries": inferred_queries,
|
|
||||||
# "image": diagram_description,
|
|
||||||
# }
|
|
||||||
|
|
||||||
# await sync_to_async(save_to_conversation_log)(
|
|
||||||
# q,
|
|
||||||
# excalidraw_diagram_description,
|
|
||||||
# user,
|
|
||||||
# meta_log,
|
|
||||||
# user_message_time,
|
|
||||||
# intent_type="excalidraw",
|
|
||||||
# inferred_queries=[better_diagram_description_prompt],
|
|
||||||
# client_application=request.user.client_app,
|
|
||||||
# conversation_id=conversation_id,
|
|
||||||
# compiled_references=compiled_references,
|
|
||||||
# online_results=online_results,
|
|
||||||
# code_results=code_results,
|
|
||||||
# query_images=uploaded_images,
|
|
||||||
# train_of_thought=train_of_thought,
|
|
||||||
# raw_query_files=raw_query_files,
|
|
||||||
# generated_images=generated_images,
|
|
||||||
# tracer=tracer,
|
|
||||||
# )
|
|
||||||
|
|
||||||
# async for result in send_llm_response(json.dumps(content_obj), tracer.get("usage")):
|
|
||||||
# yield result
|
|
||||||
# return
|
|
||||||
|
|
||||||
## Generate Text Output
|
## Generate Text Output
|
||||||
async for result in send_event(ChatEvent.STATUS, f"**Generating a well-informed response**"):
|
async for result in send_event(ChatEvent.STATUS, f"**Generating a well-informed response**"):
|
||||||
yield result
|
yield result
|
||||||
|
|
Loading…
Reference in a new issue