diff --git a/deeptutor/learning/lesson_evidence.py b/deeptutor/learning/lesson_evidence.py index 57b6f04af..afd59c237 100644 --- a/deeptutor/learning/lesson_evidence.py +++ b/deeptutor/learning/lesson_evidence.py @@ -504,7 +504,7 @@ async def _ask( {"role": "system", "content": instruction}, {"role": "user", "content": content}, ], - max_tokens=1800, + max_tokens=8192, allow_image_fallback=False, ) except LessonUnavailable: diff --git a/deeptutor/learning/semantic_assessment.py b/deeptutor/learning/semantic_assessment.py index ec9d313f6..52cdb1dde 100644 --- a/deeptutor/learning/semantic_assessment.py +++ b/deeptutor/learning/semantic_assessment.py @@ -157,7 +157,7 @@ async def _request(config, instruction, payload, sources=None, native_images=Non # Do not impose a shorter assessment timeout on a reasoning provider. return await _complete_json( config or get_llm_config(), - max_tokens=2200, + max_tokens=8192, messages=messages, allow_image_fallback=False, ) diff --git a/deeptutor/learning/tests/test_lesson_json_response.py b/deeptutor/learning/tests/test_lesson_json_response.py index 5502360ed..71c387bd2 100644 --- a/deeptutor/learning/tests/test_lesson_json_response.py +++ b/deeptutor/learning/tests/test_lesson_json_response.py @@ -75,7 +75,7 @@ def test_ask_retries_once_with_reasoning_turned_down(monkeypatch): async def complete(**kwargs): efforts.append(kwargs["config"].reasoning_effort) - assert kwargs["max_tokens"] == 1800 + assert kwargs["max_tokens"] == 8192 # The first reply spent its budget thinking and returned no answer. return "Considering the objective" if len(efforts) == 1 else '{"queries": ["a"]}' @@ -126,7 +126,7 @@ def test_assessment_requests_share_the_parser_and_retry(monkeypatch): async def complete(**kwargs): efforts.append(kwargs["config"].reasoning_effort) - assert kwargs["max_tokens"] == 2200 + assert kwargs["max_tokens"] == 8192 if len(efforts) == 1: return "" return 'Verdicts follow.\n```json\n{"verdicts": []}\n```'