diff --git a/ai/views/oj.py b/ai/views/oj.py index 9aab1d9..c2d3f97 100644 --- a/ai/views/oj.py +++ b/ai/views/oj.py @@ -173,6 +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}, ) except Exception as exc: yield f"data: {json.dumps({'type': 'error', 'message': str(exc)})}\n\n" @@ -642,6 +643,7 @@ class AILoginSummaryAPI(APIView): {"role": "system", "content": system_prompt}, {"role": "user", "content": user_prompt}, ], + extra_body={"thinking": False}, ) except Exception as exc: return "", str(exc) diff --git a/flowchart/tasks.py b/flowchart/tasks.py index 707d258..aca9be6 100644 --- a/flowchart/tasks.py +++ b/flowchart/tasks.py @@ -61,6 +61,7 @@ def evaluate_flowchart_task(submission_id): {"role": "user", "content": user_prompt} ], temperature=0.3, + extra_body={"thinking": False}, ) ai_response = response.choices[0].message.content