Compare commits
2 Commits
2fb16b812a
...
b10a8a7da5
Author | SHA1 | Date | |
---|---|---|---|
b10a8a7da5 | |||
4450a9997d |
|
@ -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 evaluation')
|
||||
return True
|
||||
|
||||
summary = run_ollama(
|
||||
repository_path,
|
||||
[
|
||||
|
@ -472,8 +476,8 @@ def solve_issue_in_repository(
|
|||
if not resolution.success:
|
||||
return resolution
|
||||
|
||||
# Verify whether this is a satisfactory solution (skipped if no evaluator model)
|
||||
if not EVALUATOR_MODEL or verify_solution(repository_path, issue_content):
|
||||
# Verify whether this is a satisfactory solution
|
||||
if verify_solution(repository_path, issue_content):
|
||||
return resolution
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user