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

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

diff --git a/aider_gitea/__init__.py b/aider_gitea/__init__.py
index d50abdd..ba2a2f6 100644
--- a/aider_gitea/__init__.py
+++ b/aider_gitea/__init__.py
@@ -472,8 +472,8 @@ def solve_issue_in_repository(
         if not resolution.success:
             return resolution
 
-        # Verify whether this is a satisfactory solution
-        if verify_solution(repository_path, issue_content):
+        # Skip evaluation if no evaluator model specified, otherwise verify solution
+        if not EVALUATOR_MODEL or verify_solution(repository_path, issue_content):
             return resolution