Skip to content

Drop in a screenshot and convert it to clean code (HTML/Tailwind/React/Vue)

Python

disable thinking

Abi Raja43d7125ed16f
diff --git a/backend/models/claude.py b/backend/models/claude.py
index 8b1fa371..b4dee0cf 100644
--- a/backend/models/claude.py
+++ b/backend/models/claude.py
@@ -88,7 +88,7 @@ async def stream_claude_response(
# Thinking is not compatible with temperature
async with client.beta.messages.stream(
model=model_name,
- thinking={"type": "enabled", "budget_tokens": 1024},
+ # thinking={"type": "enabled", "budget_tokens": 1024},
max_tokens=20000,
system=system_prompt,
messages=claude_messages, # type: ignore