Unverified Commit a57d7582 authored by Wang Ran (汪然)'s avatar Wang Ran (汪然) Committed by GitHub
Browse files

[bugfix] make args.stream work (#6831)

parent 925de97e
......@@ -31,7 +31,10 @@ def post_http_request(prompt: str,
"max_tokens": 16,
"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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment