[bugfix] make args.stream work (#6831)
This commit is contained in:
parent
925de97e05
commit
a57d75821c
@ -31,7 +31,10 @@ def post_http_request(prompt: str,
|
|||||||
"max_tokens": 16,
|
"max_tokens": 16,
|
||||||
"stream": stream,
|
"stream": stream,
|
||||||
}
|
}
|
||||||
response = requests.post(api_url, headers=headers, json=pload, stream=True)
|
response = requests.post(api_url,
|
||||||
|
headers=headers,
|
||||||
|
json=pload,
|
||||||
|
stream=stream)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user