Compare commits
2 Commits
af007f7165
...
1c326c4f64
Author | SHA1 | Date | |
---|---|---|---|
1c326c4f64 | |||
4ddc42fd0b |
|
@ -387,11 +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:
|
||||||
# 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(
|
summary = run_ollama(
|
||||||
repository_path,
|
repository_path,
|
||||||
[
|
[
|
||||||
|
@ -477,6 +472,10 @@ def solve_issue_in_repository(
|
||||||
if not resolution.success:
|
if not resolution.success:
|
||||||
return resolution
|
return resolution
|
||||||
|
|
||||||
|
# Skip evaluation if no evaluator model is specified
|
||||||
|
if not EVALUATOR_MODEL:
|
||||||
|
return resolution
|
||||||
|
|
||||||
# Verify whether this is a satisfactory solution
|
# Verify whether this is a satisfactory solution
|
||||||
if verify_solution(repository_path, issue_content):
|
if verify_solution(repository_path, issue_content):
|
||||||
return resolution
|
return resolution
|
||||||
|
|
Loading…
Reference in New Issue
Block a user