Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
a57d7582
Unverified
Commit
a57d7582
authored
Jul 27, 2024
by
Wang Ran (汪然)
Committed by
GitHub
Jul 27, 2024
Browse files
[bugfix] make args.stream work (#6831)
parent
925de97e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
examples/api_client.py
examples/api_client.py
+4
-1
No files found.
examples/api_client.py
View file @
a57d7582
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment