From 1cf2439a5acfb1980215480c5d5c35e5fc59107e Mon Sep 17 00:00:00 2001 From: KoalaTrapLord <265133236+KoalaTrapLord@users.noreply.github.com> Date: Mon, 23 Mar 2026 14:31:59 -0400 Subject: [PATCH] fix(#95): correct validator defaults to deepseek-r1:8b and 300s timeout _get_validator_brain() defaulted VALIDATOR_MODEL to deepseek-r1:14b and VALIDATOR_TIMEOUT to 120.0, conflicting with the brain config. Changed to deepseek-r1:8b and 300.0 to match. Fixes issue #95 item 4. --- routes/deepseek.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/deepseek.py b/routes/deepseek.py index 0afd3a2..a9f78be 100644 --- a/routes/deepseek.py +++ b/routes/deepseek.py @@ -56,9 +56,9 @@ def _get_validator_brain() -> ValidatorBrain | None: if _validator_brain is None: cfg = ValidatorConfig( api_base=os.environ.get("VALIDATOR_API_BASE", "http://localhost:11434"), - model=os.environ.get("VALIDATOR_MODEL", "deepseek-r1:14b"), + model=os.environ.get("VALIDATOR_MODEL", "deepseek-r1:8b"), max_tokens=int(os.environ.get("VALIDATOR_MAX_TOKENS", "2048")), - request_timeout=float(os.environ.get("VALIDATOR_TIMEOUT", "120.0")), + request_timeout=float(os.environ.get("VALIDATOR_TIMEOUT", "300.0")), ) _validator_brain = ValidatorBrain(cfg) return _validator_brain