mirror of
https://github.com/Alishahryar1/free-claude-code.git
synced 2026-04-28 03:20:01 +00:00
fix: update test_build_request_body to use enable_thinking=True
This commit is contained in:
parent
b75f47b62d
commit
6dd07d9b6b
1 changed files with 5 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue