Skip to content

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

always enabled thinking

Alishahryar1952a2351ec29
diff --git a/providers/nvidia_nim/request.py b/providers/nvidia_nim/request.py
index fad52e2d..f4c8fc8b 100644
--- a/providers/nvidia_nim/request.py
+++ b/providers/nvidia_nim/request.py
@@ -84,14 +84,12 @@ def build_request_body(request_data: Any, nim: NimSettings) -> dict:
extra_body.update(request_extra)
# Handle thinking/reasoning mode
- 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},
- )
+ 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