From ebe92ef16de3740935b41005e4ba82dbe0f9c106 Mon Sep 17 00:00:00 2001 From: Debanjum Singh Solanky Date: Wed, 24 Jul 2024 17:18:14 +0530 Subject: [PATCH] Do not send references twice in streamed image response Remove unused image content to reduce response payload size. References are collated, sent separately --- src/khoj/routers/api_chat.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/khoj/routers/api_chat.py b/src/khoj/routers/api_chat.py index 9154bff8..5e1cb1a8 100644 --- a/src/khoj/routers/api_chat.py +++ b/src/khoj/routers/api_chat.py @@ -890,10 +890,7 @@ async def chat( online_results=online_results, ) content_obj = { - "content-type": "application/json", "intentType": intent_type, - "context": compiled_references, - "onlineContext": online_results, "inferredQueries": [improved_image_prompt], "image": image, }