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
9e372664
Unverified
Commit
9e372664
authored
Nov 09, 2024
by
Zhao Yingzhuo
Committed by
GitHub
Nov 09, 2024
Browse files
bugfix: fix the bug that stream generate not work (#2756)
parent
8a4358ec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/entrypoints/api_server.py
vllm/entrypoints/api_server.py
+1
-1
No files found.
vllm/entrypoints/api_server.py
View file @
9e372664
...
...
@@ -66,7 +66,7 @@ async def generate(request: Request) -> Response:
prompt
+
output
.
text
for
output
in
request_output
.
outputs
]
ret
=
{
"text"
:
text_outputs
}
yield
(
json
.
dumps
(
ret
)
+
"
\
0
"
).
encode
(
"utf-8"
)
yield
(
json
.
dumps
(
ret
)
+
"
\
n
"
).
encode
(
"utf-8"
)
if
stream
:
return
StreamingResponse
(
stream_results
())
...
...
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