mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-07 21:29:13 +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,
|
online_results=online_results,
|
||||||
)
|
)
|
||||||
content_obj = {
|
content_obj = {
|
||||||
"content-type": "application/json",
|
|
||||||
"intentType": intent_type,
|
"intentType": intent_type,
|
||||||
"context": compiled_references,
|
|
||||||
"onlineContext": online_results,
|
|
||||||
"inferredQueries": [improved_image_prompt],
|
"inferredQueries": [improved_image_prompt],
|
||||||
"image": image,
|
"image": image,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user