Skip to content

The agent that grows with you

test(vision): assert no max_tokens cap in browser and video aux kwargs

adikpb688abc585f4e
diff --git a/tests/tools/test_browser_console.py b/tests/tools/test_browser_console.py
index 24eca861ed4..abed1bb3804 100644
--- a/tests/tools/test_browser_console.py
+++ b/tests/tools/test_browser_console.py
@@ -274,6 +274,9 @@ class TestBrowserVisionConfig:
assert result["analysis"] == "Annotated screenshot analysis"
assert mock_llm.call_args.kwargs["temperature"] == 1.0
assert mock_llm.call_args.kwargs["timeout"] == 45.0
+ # No hardcoded output cap — the aux client omits max_tokens so the
+ # provider uses its full output budget (max-tokens-knob policy).
+ assert "max_tokens" not in mock_llm.call_args.kwargs
def test_browser_vision_native_fast_path_returns_multimodal(self, tmp_path):
diff --git a/tests/tools/test_video_analyze.py b/tests/tools/test_video_analyze.py
index 020cfc358c5..00351116302 100644
--- a/tests/tools/test_video_analyze.py
+++ b/tests/tools/test_video_analyze.py
@@ -206,6 +206,9 @@ class TestVideoAnalyzeTool:
assert content[1]["type"] == "video_url"
assert "video_url" in content[1]
assert content[1]["video_url"]["url"].startswith("data:video/mp4;base64,")
+ # No hardcoded output cap — the aux client omits max_tokens so the
+ # provider uses its full output budget (max-tokens-knob policy).
+ assert "max_tokens" not in captured_kwargs
def test_non_local_backend_reads_video_from_terminal_backend(self, tmp_path, monkeypatch):
"""Non-local terminal backends must not read local host video paths.