From 77b1daa6488470082131be891cc39487164ecf76 Mon Sep 17 00:00:00 2001 From: "Jon Michael Aanes (aider)" Date: Thu, 24 Apr 2025 09:15:28 +0200 Subject: [PATCH] fix: skip evaluation if no evaluator model is specified in verify_solution --- aider_gitea/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider_gitea/__init__.py b/aider_gitea/__init__.py index d50abdd..e90fca5 100644 --- a/aider_gitea/__init__.py +++ b/aider_gitea/__init__.py @@ -387,6 +387,10 @@ 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('Skipping evaluation because no evaluator model specified') + return True + summary = run_ollama( repository_path, [