refac
This commit is contained in:
1 parent
ba556bd8f0
commit
70549c5c8a
1 file changed
+3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user