Commit 8e040ad5 authored by 于飞's avatar 于飞

换行修改

parent eb171755
...@@ -545,7 +545,7 @@ async def stream_generator(chat, incremental: bool, model_name: str): ...@@ -545,7 +545,7 @@ async def stream_generator(chat, incremental: bool, model_name: str):
chunk, exclude_unset=True, ensure_ascii=False chunk, exclude_unset=True, ensure_ascii=False
) )
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:
......
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