update:优化无意图识别的日志输出 (#295)

Co-authored-by: hrz <1710360675@qq.com>
This commit is contained in:
欣南科技
2025-03-12 12:46:29 +08:00
committed by GitHub
co-authored by hrz
parent 81fee53085
commit a8c6c7cb36
4 changed files with 6 additions and 8 deletions
@@ -93,8 +93,6 @@ async def handle_user_intent(conn, text):
# 使用支持function calling的聊天方法,不再进行意图分析
return False
logger.bind(tag=TAG).info(f"分析用户意图: {text}")
# 使用LLM进行意图分析
intent = await analyze_intent_with_llm(conn, text)
@@ -126,7 +124,6 @@ async def analyze_intent_with_llm(conn, text):
dialogue = conn.dialogue
try:
intent_result = await conn.intent.detect_intent(dialogue.dialogue, text)
logger.bind(tag=TAG).info(f"意图识别结果: {intent_result}")
# 尝试解析JSON结果
try: