mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-17 06:45:24 +00:00
fix
This commit is contained in:
parent
70dd790afc
commit
8426874426
1 changed files with 4 additions and 1 deletions
|
|
@ -816,7 +816,10 @@ async def generate_chat_completion(
|
||||||
log.debug(payload)
|
log.debug(payload)
|
||||||
|
|
||||||
return await post_streaming_url(
|
return await post_streaming_url(
|
||||||
f"{url}/api/chat", json.dumps(payload), content_type="application/x-ndjson"
|
f"{url}/api/chat",
|
||||||
|
json.dumps(payload),
|
||||||
|
stream=form_data.stream,
|
||||||
|
content_type="application/x-ndjson",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue