From 12182360049321af2dcefd1998af23c2be13e6c1 Mon Sep 17 00:00:00 2001 From: lezhimiffyliu <108645759+lezhimiffyliu@users.noreply.github.com> Date: Wed, 27 May 2026 08:21:33 -0400 Subject: [PATCH] Fix GPT-5 token limit parameter in init wizard probe (#508) --- deeptutor_cli/init_wizard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deeptutor_cli/init_wizard.py b/deeptutor_cli/init_wizard.py index a026e6f57..80e80b37f 100644 --- a/deeptutor_cli/init_wizard.py +++ b/deeptutor_cli/init_wizard.py @@ -23,6 +23,7 @@ from rich.table import Table from rich.text import Text import typer +from deeptutor.services.llm.config import get_token_limit_kwargs from deeptutor.services.provider_registry import PROVIDERS, ProviderSpec, find_by_name # --- Featured selection ------------------------------------------------------ @@ -794,7 +795,7 @@ def probe_llm(*, base_url: str, api_key: str, binding: str, model: str) -> tuple } body = { "model": model, - "max_tokens": 1, + **get_token_limit_kwargs(model, 1), "messages": [{"role": "user", "content": "ping"}], }