Compare commits

..

2 Commits

Author SHA1 Message Date
af007f7165 fix: skip solution verification 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 30s
2025-04-24 11:12:40 +02:00
e34bc51fbe Initial ruff pass 2025-04-24 11:12:06 +02:00

View File

@ -387,6 +387,11 @@ def run_ollama_and_get_yes_or_no(cwd, initial_texts: list[str]) -> bool:
def verify_solution(repository_path: Path, issue_content: str) -> bool:
# Skip evaluation if no evaluator model specified
if not EVALUATOR_MODEL:
logger.info('Skipping solution verification; no evaluator model specified')
return True
summary = run_ollama(
repository_path,
[
@ -472,10 +477,6 @@ def solve_issue_in_repository(
if not resolution.success:
return resolution
# Skip evaluation if no evaluator model is specified
if not EVALUATOR_MODEL:
return resolution
# Verify whether this is a satisfactory solution
if verify_solution(repository_path, issue_content):
return resolution