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:
Debanjum Singh Solanky 2024-07-24 17:18:14 +05:30
parent 37b8fc5577
commit ebe92ef16d

View file

@ -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,
}