Compare commits

..

2 Commits

Author SHA1 Message Date
2fb16b812a fix: skip evaluation if no evaluator model is specified
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 24s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
2025-04-24 08:50:57 +02:00
3a1a4935f6 Initial ruff pass 2025-04-24 08:50:32 +02:00

View File

@ -387,10 +387,6 @@ def run_ollama_and_get_yes_or_no(cwd, initial_texts: list[str]) -> bool:
def verify_solution(repository_path: Path, issue_content: 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( summary = run_ollama(
repository_path, repository_path,
[ [
@ -476,8 +472,8 @@ def solve_issue_in_repository(
if not resolution.success: if not resolution.success:
return resolution return resolution
# Verify whether this is a satisfactory solution # Verify whether this is a satisfactory solution (skipped if no evaluator model)
if verify_solution(repository_path, issue_content): if not EVALUATOR_MODEL or verify_solution(repository_path, issue_content):
return resolution return resolution