Commit d3b7a8eb by 杨林龙

优化分隔符

1 parent 6f7915c5
......@@ -196,7 +196,7 @@ async def websocket_endpoint(ws: WebSocket, client_id: str):
logger.info(f"接受到的历史记录{history_str}")
history_data = json.loads(history_str)
for item in history_data:
history.append((item.split(":")[0], item.split(":")[1]))
history.append((item.split("::")[0], item.split("::")[1]))
resp0 = ""
# for response, history in model.stream_chat(tokenizer, data, [], max_length= 2048,top_p= 0.7, temperature= 0.95):
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!