fix(bot): Reasoning/Thinking NIEMALS an User zeigen

This commit is contained in:
Cursor 2026-03-21 00:03:56 +01:00
parent 9fc48d1628
commit 3d0b3084ad

View file

@ -297,8 +297,6 @@ def ask_with_tools(question: str, tool_handlers: dict, session_id: str = None) -
tool_calls = msg.get("tool_calls")
if not tool_calls:
content = msg.get("content") or ""
if not content and msg.get("reasoning"):
content = msg.get("reasoning", "")
return content or "Keine Antwort vom LLM."
messages.append(msg)
@ -392,8 +390,6 @@ def ask_with_image(image_base64: str, caption: str, tool_handlers: dict, session
tool_calls = msg.get("tool_calls")
if not tool_calls:
content = msg.get("content") or ""
if not content and msg.get("reasoning"):
content = msg.get("reasoning", "")
return content or "Keine Antwort vom LLM."
messages.append(msg)