Compare commits

..

2 Commits

Author SHA1 Message Date
f265f91be2 fix: skip evaluation if no evaluator model is specified in solver
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 10:01:55 +02:00
87646e5291 Initial ruff pass 2025-04-24 10:01:13 +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:
if not EVALUATOR_MODEL:
logger.info('Skipping evaluation, no evaluator model specified')
return True
summary = run_ollama(
repository_path,
[
@ -476,6 +472,11 @@ def solve_issue_in_repository(
if not resolution.success:
return resolution
# Disable evaluation if no evaluator model is specified
if not EVALUATOR_MODEL:
# No evaluator model specified, skip evaluation
return resolution
# Verify whether this is a satisfactory solution
if verify_solution(repository_path, issue_content):
return resolution