mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-11 22:52:54 +00:00
refac
This commit is contained in:
parent
ba556bd8f0
commit
70549c5c8a
1 changed files with 3 additions and 0 deletions
|
|
@ -1346,6 +1346,9 @@ async def generate_chat_completion(
|
|||
)
|
||||
|
||||
is_streaming_request = bool(payload.get('stream', False))
|
||||
if not is_streaming_request:
|
||||
payload.pop('stream_options', None)
|
||||
|
||||
payload = json.dumps(payload)
|
||||
|
||||
r = None
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue