fix: disable thinking
This commit is contained in:
1 file changed
+2
@@ -55,6 +55,7 @@ def summarize_email(ai_cfg: AIConfig, recipient: str, subject: str, sender: str,
|
|||||||
|
|
||||||
payload = {
|
payload = {
|
||||||
"model": ai_cfg.model,
|
"model": ai_cfg.model,
|
||||||
|
"thinking": {"type": "disabled"},
|
||||||
"messages": [
|
"messages": [
|
||||||
{"role": "system", "content": SYSTEM_PROMPT},
|
{"role": "system", "content": SYSTEM_PROMPT},
|
||||||
{"role": "user", "content": content},
|
{"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}"
|
content = f"发件人: {sender}\n主题: {subject}\n正文:\n{body}"
|
||||||
payload = {
|
payload = {
|
||||||
"model": ai_cfg.model,
|
"model": ai_cfg.model,
|
||||||
|
"thinking": {"type": "disabled"},
|
||||||
"messages": [
|
"messages": [
|
||||||
{"role": "system", "content": PROMO_DETAIL_PROMPT},
|
{"role": "system", "content": PROMO_DETAIL_PROMPT},
|
||||||
{"role": "user", "content": content},
|
{"role": "user", "content": content},
|
||||||
|
|||||||
Reference in New Issue
Block a user