fix: disable thinking

This commit is contained in:
2026-09-05 10:21:39 +08:00
parent f65e67c2f2
commit 1a337aba4d
1 file changed
+2
+2
View File
@@ -55,6 +55,7 @@ def summarize_email(ai_cfg: AIConfig, recipient: str, subject: str, sender: str,
payload = {
"model": ai_cfg.model,
"thinking": {"type": "disabled"},
"messages": [
{"role": "system", "content": SYSTEM_PROMPT},
{"role": "user", "content": content},
@@ -77,6 +78,7 @@ def expand_promo_detail(ai_cfg: AIConfig, sender: str, subject: str, body: str)
content = f"发件人: {sender}\n主题: {subject}\n正文:\n{body}"
payload = {
"model": ai_cfg.model,
"thinking": {"type": "disabled"},
"messages": [
{"role": "system", "content": PROMO_DETAIL_PROMPT},
{"role": "user", "content": content},