Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jerrrrry
infinilm
Commits
4fb73db2
Commit
4fb73db2
authored
Jul 07, 2025
by
Catheriany
Browse files
issue/14: 修复非流式输出bug
parent
9f5e40d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
scripts/launch_server.py
scripts/launch_server.py
+2
-2
No files found.
scripts/launch_server.py
View file @
4fb73db2
...
@@ -274,8 +274,8 @@ async def chat_completions(request: Request):
...
@@ -274,8 +274,8 @@ async def chat_completions(request: Request):
chat_stream
(
id_
,
data
,
request
),
media_type
=
"text/event-stream"
chat_stream
(
id_
,
data
,
request
),
media_type
=
"text/event-stream"
)
)
else
:
else
:
re
turn
JSONResponse
(
chat
(
id_
,
data
)
)
re
sponse
=
await
chat
(
id_
,
data
,
request
)
return
JSONResponse
(
content
=
response
)
if
__name__
==
"__main__"
:
if
__name__
==
"__main__"
:
uvicorn
.
run
(
App
,
host
=
"0.0.0.0"
,
port
=
8000
)
uvicorn
.
run
(
App
,
host
=
"0.0.0.0"
,
port
=
8000
)
...
...
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