no thinking

This commit is contained in:
2026-05-08 19:25:07 -06:00
parent b122c50780
commit 34f6a2e24a
2 changed files with 3 additions and 0 deletions

View File

@@ -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)