From 8fa151fd8096da18194691441d56667edf924dc5 Mon Sep 17 00:00:00 2001 From: "Jon Michael Aanes (aider)" Date: Thu, 24 Apr 2025 00:19:40 +0200 Subject: [PATCH] fix: skip evaluation in verify_solution if no evaluator model is set --- aider_gitea/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aider_gitea/__init__.py b/aider_gitea/__init__.py index d50abdd..7d1656c 100644 --- a/aider_gitea/__init__.py +++ b/aider_gitea/__init__.py @@ -387,6 +387,9 @@ def run_ollama_and_get_yes_or_no(cwd, initial_texts: list[str]) -> bool: def verify_solution(repository_path: Path, issue_content: str) -> bool: + if not EVALUATOR_MODEL: + logger.info('No evaluator model specified, skipping evaluation') + return True summary = run_ollama( repository_path, [