Compare commits
2 Commits
22a5961fea
...
a7dfe6169a
Author | SHA1 | Date | |
---|---|---|---|
a7dfe6169a | |||
d6a80b980f |
|
@ -387,9 +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:
|
||||
return True
|
||||
|
||||
summary = run_ollama(
|
||||
repository_path,
|
||||
[
|
||||
|
@ -475,6 +472,10 @@ def solve_issue_in_repository(
|
|||
if not resolution.success:
|
||||
return resolution
|
||||
|
||||
# Disable 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
|
||||
|
|
Loading…
Reference in New Issue
Block a user