From 10e4591076f76de72a0bb7ac6f9b2c7ffc500f78 Mon Sep 17 00:00:00 2001
From: "Jon Michael Aanes (aider)" <jonjmaa@gmail.com>
Date: Thu, 24 Apr 2025 10:35:36 +0200
Subject: [PATCH] fix: skip solution verification if no evaluator model is
 specified

---
 aider_gitea/__init__.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/aider_gitea/__init__.py b/aider_gitea/__init__.py
index d50abdd..a272123 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('No evaluator model specified, skipping solution verification')
+        return True
+
     summary = run_ollama(
         repository_path,
         [