fix(bot): Reasoning/Thinking NIEMALS an User zeigen
This commit is contained in:
parent
9fc48d1628
commit
3d0b3084ad
1 changed files with 0 additions and 4 deletions
|
|
@ -297,8 +297,6 @@ def ask_with_tools(question: str, tool_handlers: dict, session_id: str = None) -
|
||||||
tool_calls = msg.get("tool_calls")
|
tool_calls = msg.get("tool_calls")
|
||||||
if not tool_calls:
|
if not tool_calls:
|
||||||
content = msg.get("content") or ""
|
content = msg.get("content") or ""
|
||||||
if not content and msg.get("reasoning"):
|
|
||||||
content = msg.get("reasoning", "")
|
|
||||||
return content or "Keine Antwort vom LLM."
|
return content or "Keine Antwort vom LLM."
|
||||||
|
|
||||||
messages.append(msg)
|
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")
|
tool_calls = msg.get("tool_calls")
|
||||||
if not tool_calls:
|
if not tool_calls:
|
||||||
content = msg.get("content") or ""
|
content = msg.get("content") or ""
|
||||||
if not content and msg.get("reasoning"):
|
|
||||||
content = msg.get("reasoning", "")
|
|
||||||
return content or "Keine Antwort vom LLM."
|
return content or "Keine Antwort vom LLM."
|
||||||
|
|
||||||
messages.append(msg)
|
messages.append(msg)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue