feat(waiting): 添加等待策略配置,支持最大、最小等待时间及倍率调整

This commit is contained in:
Windpicker-owo
2025-12-07 16:38:46 +08:00
parent fbc37bbcaf
commit 9f666b580e
8 changed files with 132 additions and 11 deletions

View File

@@ -405,6 +405,12 @@ def recover_quoted_content(sentences: list[str], placeholder_map: dict[str, str]
def process_llm_response(text: str, enable_splitter: bool = True, enable_chinese_typo: bool = True) -> list[str]:
assert global_config is not None
normalized_text = text.strip() if isinstance(text, str) else ""
if normalized_text.upper() == "PASS":
logger.info("[回复内容过滤器] 检测到PASS信号跳过发送。")
return []
if not global_config.response_post_process.enable_response_post_process:
return [text]