Compare commits

...

2 Commits

Author SHA1 Message Date
e0d00ea0ee fix: skip solution verification if no evaluator model is specified
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 24s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
2025-04-24 09:27:06 +02:00
51c97f7fc6 Initial ruff pass 2025-04-24 09:26:44 +02:00
2 changed files with 7 additions and 1 deletions

View File

@ -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('Skipping solution verification: no evaluator model specified')
return True
summary = run_ollama(
repository_path,
[

View File

@ -169,7 +169,9 @@ class GiteaClient:
# If a pull request for this head/base already exists, return it instead of crashing
if response.status_code == 409:
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)
for pr in prs: