Compare commits
2 Commits
af007f7165
...
2517c5c11b
Author | SHA1 | Date | |
---|---|---|---|
2517c5c11b | |||
0b17f7d973 |
|
@ -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:
|
||||||
|
# Skip evaluation if no evaluator model is specified
|
||||||
|
if not EVALUATOR_MODEL:
|
||||||
|
logger.info('No evaluator model specified, skipping solution verification')
|
||||||
|
return True
|
||||||
summary = run_ollama(
|
summary = run_ollama(
|
||||||
repository_path,
|
repository_path,
|
||||||
[
|
[
|
||||||
|
|
|
@ -169,7 +169,9 @@ class GiteaClient:
|
||||||
# If a pull request for this head/base already exists, return it instead of crashing
|
# If a pull request for this head/base already exists, return it instead of crashing
|
||||||
if response.status_code == 409:
|
if response.status_code == 409:
|
||||||
logger.warning(
|
logger.warning(
|
||||||
'Pull request already exists for head %s and base %s', head, base,
|
'Pull request already exists for head %s and base %s',
|
||||||
|
head,
|
||||||
|
base,
|
||||||
)
|
)
|
||||||
prs = self.get_pull_requests(owner, repo)
|
prs = self.get_pull_requests(owner, repo)
|
||||||
for pr in prs:
|
for pr in prs:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user