合并远程报价模板 AI 解析与超时设置:保留私聊图片和附件询价。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-09-18 17:47:48 +08:00
co-authored by Cursor
41 changed files with 4972 additions and 438 deletions
+4
View File
@@ -154,6 +154,10 @@ class LlmHttpClient:
if provider == "qwen":
# 识图只要可见原文。思考开着时 content 常为空,销售侧就会「认不到」。
body["enable_thinking"] = False
# 报价模板 mappingJson 体积大,显式抬高上限,降低半截 JSON
mode_val = mode.value if isinstance(mode, LlmMode) else str(mode)
if mode_val == LlmMode.SHEET_MAP.value:
body["max_tokens"] = 8192
if tools:
body["tools"] = tools
if tool_choice is not None: