From 031be904450d437b9996b00f3b5a0b1bbc1dcd61 Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Fri, 8 May 2026 20:16:19 -0600 Subject: [PATCH] fix --- ai/views/oj.py | 4 ++-- flowchart/tasks.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ai/views/oj.py b/ai/views/oj.py index c2d3f97..eea18c2 100644 --- a/ai/views/oj.py +++ b/ai/views/oj.py @@ -173,7 +173,7 @@ def stream_ai_response(client, system_prompt, user_prompt, on_complete=None): {"role": "user", "content": user_prompt}, ], stream=True, - extra_body={"thinking": False}, + extra_body={"thinking": {"type": "disabled"}}, ) except Exception as exc: yield f"data: {json.dumps({'type': 'error', 'message': str(exc)})}\n\n" @@ -643,7 +643,7 @@ class AILoginSummaryAPI(APIView): {"role": "system", "content": system_prompt}, {"role": "user", "content": user_prompt}, ], - extra_body={"thinking": False}, + extra_body={"thinking": {"type": "disabled"}}, ) except Exception as exc: return "", str(exc) diff --git a/flowchart/tasks.py b/flowchart/tasks.py index aca9be6..98b4f38 100644 --- a/flowchart/tasks.py +++ b/flowchart/tasks.py @@ -61,7 +61,7 @@ def evaluate_flowchart_task(submission_id): {"role": "user", "content": user_prompt} ], temperature=0.3, - extra_body={"thinking": False}, + extra_body={"thinking": {"type": "disabled"}}, ) ai_response = response.choices[0].message.content