From 7eb96c6e65136a47f70fa718892320a673748389 Mon Sep 17 00:00:00 2001 From: Kingston-SCYD Date: Sun, 16 Aug 2026 23:43:15 -0500 Subject: [PATCH] Remove reasoning_content fallback - don't expose internal thinking --- assistant/assistant.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/assistant/assistant.py b/assistant/assistant.py index 043586b..4b578ad 100644 --- a/assistant/assistant.py +++ b/assistant/assistant.py @@ -172,15 +172,10 @@ class Assistant(commands.Cog): try: choice = data["choices"][0]["message"] reply = choice.get("content") or "" - # Some models (e.g. DeepSeek) put their response in reasoning_content - if not reply.strip(): - reasoning = choice.get("reasoning_content") or "" - if reasoning.strip(): - reply = reasoning except (KeyError, IndexError): - return f"Unexpected API response: {str(data)[:300]}" + return "Unexpected API response." - if not reply or not reply.strip(): + if not reply.strip(): return "The model returned an empty response. Try rephrasing or switching models." self.history[key].append({"role": "assistant", "content": reply})