fix:客服agent增加转人工

This commit is contained in:
2026-09-15 11:42:26 +08:00
parent 177a28b1de
commit 102cae6692
10 changed files with 22 additions and 100 deletions
+1 -2
View File
@@ -106,7 +106,6 @@ async def rewrite_query(
{"role": "user", "content": prompt},
],
temperature=0,
max_tokens=512,
)
except Exception: # noqa: BLE001 改写失败不阻断原查询
logger.warning("NL2SQL 查询问题改写失败,继续使用原问题", exc_info=True)
@@ -115,4 +114,4 @@ async def rewrite_query(
return value or original
__all__ = ["rewrite_query"]
__all__ = ["rewrite_query"]