feat: update api to support image comparison
This commit is contained in:
parent
4290c70548
commit
02c3178b6b
@ -96,7 +96,10 @@ async def stream_code_test(websocket: WebSocket):
|
|||||||
async def process_chunk(content):
|
async def process_chunk(content):
|
||||||
await websocket.send_json({"type": "chunk", "value": content})
|
await websocket.send_json({"type": "chunk", "value": content})
|
||||||
|
|
||||||
prompt_messages = assemble_prompt(params["image"])
|
if params.get("resultImg") and params["resultImg"]:
|
||||||
|
prompt_messages = assemble_prompt(params["image"], params["resultImg"])
|
||||||
|
else:
|
||||||
|
prompt_messages = assemble_prompt(params["image"])
|
||||||
|
|
||||||
# Image cache for updates so that we don't have to regenerate images
|
# Image cache for updates so that we don't have to regenerate images
|
||||||
image_cache = {}
|
image_cache = {}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user