不要将纯文本包装成 ResponseSet 格式!

This commit is contained in:
Windpicker-owo
2025-09-07 03:34:14 +08:00
parent 3d8da9f073
commit 653599b7e7
2 changed files with 4 additions and 3 deletions

View File

@@ -1,4 +1,5 @@
import time
import orjson
import random
from typing import Dict, Any, Tuple
@@ -154,7 +155,7 @@ class ResponseHandler:
if isinstance(data, list):
data = "".join(map(str, data))
reply_text += data.get("data",{}).get("text","")
reply_text += data
# 如果是主动思考且内容为“沉默”,则不发送
if is_proactive_thinking and data.strip() == "沉默":