Use Claude Code, Codex, VSCode, Pi, and OpenCode (and 6 other harnesses) for free (1.3B+ free tokens) from your terminal, app, IDE, or phone, and now from the browser with native browser sessions (multi-harness + multi-model) like OpenClaw (voice supported + ToS friendly)
Python
Revert "force enabled thinking"
Alishahryar18647aa52c5a3
diff --git a/providers/nvidia_nim/request.py b/providers/nvidia_nim/request.pyindex 6ff6c458..60eebef2 100644--- a/providers/nvidia_nim/request.py+++ b/providers/nvidia_nim/request.py@@ -86,12 +86,14 @@ def build_request_body(extra_body.update(request_extra)# Handle thinking/reasoning mode- extra_body.setdefault("thinking", {"type": "enabled"})- extra_body.setdefault("reasoning_split", True)- extra_body.setdefault(- "chat_template_kwargs",- {"thinking": True, "reasoning_split": True, "clear_thinking": False},- )+ thinking = getattr(request_data, "thinking", None)+ if thinking and getattr(thinking, "enabled", True):+ extra_body.setdefault("thinking", {"type": "enabled"})+ extra_body.setdefault("reasoning_split", True)+ extra_body.setdefault(+ "chat_template_kwargs",+ {"thinking": True, "reasoning_split": True, "clear_thinking": False},+ )req_top_k = getattr(request_data, "top_k", None)top_k = req_top_k if req_top_k is not None else nim.top_k