Compare commits
2 Commits
f265f91be2
...
8afbe27e59
Author | SHA1 | Date | |
---|---|---|---|
8afbe27e59 | |||
0fa612ccf3 |
|
@ -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:
|
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(
|
summary = run_ollama(
|
||||||
repository_path,
|
repository_path,
|
||||||
[
|
[
|
||||||
|
@ -472,11 +476,6 @@ def solve_issue_in_repository(
|
||||||
if not resolution.success:
|
if not resolution.success:
|
||||||
return resolution
|
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
|
# 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