修复jmidjourney流式数据没有实时推送的问题
This commit is contained in:
parent
539b0a3725
commit
61d9e10ec6
@ -42,5 +42,9 @@ async def ve_generate_image(data: dict, request: Request):
|
|||||||
return StreamingResponse(
|
return StreamingResponse(
|
||||||
generate(),
|
generate(),
|
||||||
media_type="application/x-ndjson",
|
media_type="application/x-ndjson",
|
||||||
headers={"X-Content-Type-Options": "nosniff"}
|
headers={
|
||||||
|
"Cache-Control": "no-cache",
|
||||||
|
"X-Accel-Buffering": "no",
|
||||||
|
"X-Content-Type-Options": "nosniff"
|
||||||
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user