Commit eb171755 authored by 于飞's avatar 于飞

换行修改

parent 1a203c6e
...@@ -546,8 +546,8 @@ async def stream_generator(chat, incremental: bool, model_name: str): ...@@ -546,8 +546,8 @@ async def stream_generator(chat, incremental: bool, model_name: str):
) )
json_chunk = json_chunk.replace("\\n", "n") json_chunk = json_chunk.replace("\\n", "n")
print(f"===>:{json_chunk}") print(f"===>:{json_chunk}")
#yield f"data: {json_chunk}\n\n" yield f"data: {json_chunk}\n\n"
yield f"data: {json_chunk}" #yield f"data: {json_chunk}"
else: else:
# TODO generate an openai-compatible streaming responses # TODO generate an openai-compatible streaming responses
msg = msg.replace("\n", "\\n") msg = msg.replace("\n", "\\n")
......
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