Commit 614cde8a authored by 于飞's avatar 于飞

修改非遗的\\n问题

parent e1760911
......@@ -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)
......
#!/bin/bash
echo Starting...
conda acitvate dbgpt_env1
conda activate dbgpt_env1
nohup dbgpt start webserver --port 6006 > /dev/null 2>&1 &
sleep 10
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment