Skip to content

Commit

Permalink
[bugfix] make args.stream work (#6831)
Browse files Browse the repository at this point in the history
  • Loading branch information
WrRan authored Jul 27, 2024
1 parent 925de97 commit a57d758
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit a57d758

Please sign in to comment.