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

fix: update test_build_request_body to use enable_thinking=True

Alishahryar16dd07d9b6b05
diff --git a/tests/providers/test_nvidia_nim.py b/tests/providers/test_nvidia_nim.py
index 1151515f..230b341e 100644
--- a/tests/providers/test_nvidia_nim.py
+++ b/tests/providers/test_nvidia_nim.py
@@ -87,10 +87,13 @@ async def test_init_uses_configurable_timeouts():
@pytest.mark.asyncio
-async def test_build_request_body(nim_provider):
+async def test_build_request_body(provider_config):
"""Test request body construction."""
+ from config.nim import NimSettings
+
+ provider = NvidiaNimProvider(provider_config, nim_settings=NimSettings(enable_thinking=True))
req = MockRequest()
- body = nim_provider._build_request_body(req)
+ body = provider._build_request_body(req)
assert body["model"] == "test-model"
assert body["temperature"] == 0.5