Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
db_gpt
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linyangyang
db_gpt
Commits
614cde8a
Commit
614cde8a
authored
Oct 09, 2024
by
于飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改非遗的\\n问题
parent
e1760911
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
api_v1.py
dbgpt/app/openapi/api_v1/api_v1.py
+1
-1
start
start
+1
-1
No files found.
dbgpt/app/openapi/api_v1/api_v1.py
View file @
614cde8a
...
...
@@ -547,7 +547,7 @@ async def stream_generator(chat, incremental: bool, model_name: str):
yield
f
"data: {json_chunk}
\n\n
"
else
:
# TODO generate an openai-compatible streaming responses
msg
=
msg
.
replace
(
"
\n
"
,
"
\\
n"
)
#
msg = msg.replace("\n", "\\n")
yield
f
"data:{msg}
\n\n
"
previous_response
=
msg
await
asyncio
.
sleep
(
0.02
)
...
...
start
View file @
614cde8a
#!/bin/bash
echo
Starting...
conda ac
it
vate dbgpt_env1
conda ac
ti
vate dbgpt_env1
nohup
dbgpt start webserver
--port
6006
>
/dev/null 2>&1 &
sleep
10
...
...
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