mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-02 21:19:12 +00:00
Do not send references twice in streamed image response
Remove unused image content to reduce response payload size. References are collated, sent separately
This commit is contained in:
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user