Commit e540110b by 杨林龙

添加智普AI

1 parent 11f33aca
......@@ -228,6 +228,7 @@ async def websocket_endpoint(ws: WebSocket, client_id: str):
question, history
):
print(f"{client_id}:response:", result)
logger.info(f"{client_id}:response:", result)
await ws.send_text(result)
await ws.send_text("<rdfast stop>") # 自定义结束符
elif type == "sparring":
......@@ -238,6 +239,7 @@ async def websocket_endpoint(ws: WebSocket, client_id: str):
question, history
):
print(f"{client_id}:response:", result)
logger.info(f"{client_id}:response:", result)
await ws.send_text(result)
await ws.send_text("<rdfast stop>") # 自定义结束符
else:
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!