"tests/vscode:/vscode.git/clone" did not exist on "dcb1a944d4cf95b4a7b3522ddf970e6d3a28b8b5"
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, ...@@ -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
......
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