mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-19 16:12:30 +00:00
test(providers): cover VolcEngine token parameter
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
dd4def25fa
commit
fd6887c274
@ -847,6 +847,18 @@ def test_volcengine_thinking_enabled() -> None:
|
||||
assert kw["extra_body"] == {"thinking": {"type": "enabled"}}
|
||||
|
||||
|
||||
def test_volcengine_uses_max_completion_tokens() -> None:
|
||||
kw = _build_kwargs_for("volcengine", "doubao-seed-2-0-pro")
|
||||
assert kw["max_completion_tokens"] == 1024
|
||||
assert "max_tokens" not in kw
|
||||
|
||||
|
||||
def test_volcengine_coding_plan_uses_max_completion_tokens() -> None:
|
||||
kw = _build_kwargs_for("volcengine_coding_plan", "doubao-seed-2-0-pro")
|
||||
assert kw["max_completion_tokens"] == 1024
|
||||
assert "max_tokens" not in kw
|
||||
|
||||
|
||||
def test_byteplus_thinking_disabled_for_minimal() -> None:
|
||||
kw = _build_kwargs_for("byteplus", "doubao-seed-2-0-pro", reasoning_effort="minimal")
|
||||
assert kw["extra_body"] == {"thinking": {"type": "disabled"}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user