mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-12-18 02:27:10 +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:
parent
37b8fc5577
commit
ebe92ef16d
1 changed files with 0 additions and 3 deletions
|
@ -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,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue