test(e2e): purge deceptive pytest.skip masks hiding VLM failures

This commit is contained in:
2026-04-28 21:49:31 +02:00
parent 7aa6bfccf6
commit e94dfe8c5c
5 changed files with 26 additions and 20 deletions

View File

@@ -15,7 +15,11 @@ def ask_brain_for_action(
return None
cfg = Config()
url = getattr(cfg.args, "ai_model_url", "http://localhost:11434/api/generate") if hasattr(cfg, "args") else "http://localhost:11434/api/generate"
url = (
getattr(cfg.args, "ai_model_url", "http://localhost:11434/api/generate")
if hasattr(cfg, "args")
else "http://localhost:11434/api/generate"
)
model = getattr(cfg.args, "ai_model", "qwen3.5:latest") if hasattr(cfg, "args") else "qwen3.5:latest"
prompt = (
@@ -40,7 +44,7 @@ def ask_brain_for_action(
try:
response = query_llm(
url=url, model=model, prompt="Choose the next best action.", system=prompt, format_json=False
url=url, model=model, prompt="Choose the next best action.", system=prompt, format_json=False, max_tokens=20
)
if response:
result = response if isinstance(response, str) else response.get("response", "")