Compare commits

...

3 Commits

Author SHA1 Message Date
c07a58af39 Ruff after aider
All checks were successful
Run Python tests (through Pytest) / Test (push) Successful in 27s
Verify Python project can be installed, loaded and have version checked / Test (push) Successful in 22s
2025-04-24 08:47:29 +02:00
fa6c221465 feat: add CLI options to specify aider and evaluator models 2025-04-24 08:47:25 +02:00
cf7f784450 Initial ruff pass 2025-04-24 08:46:50 +02:00
2 changed files with 19 additions and 1 deletions

View File

@ -45,6 +45,16 @@ def parse_args():
default=300,
help='Interval in seconds between checks in daemon mode (default: 300)',
)
parser.add_argument(
'--aider-model',
default='o4-mini',
help='Model to use for Aider (default: o4-mini)',
)
parser.add_argument(
'--evaluator-model',
default='ollama/gemma3:27b',
help='Model to use for evaluator (default: ollama/gemma3:27b)',
)
return parser.parse_args()
@ -52,6 +62,12 @@ def main():
logging.basicConfig(level='INFO')
args = parse_args()
import importlib
pkg = importlib.import_module(__package__)
pkg.CODE_MODEL = args.aider_model
pkg.EVALUATOR_MODEL = args.evaluator_model
seen_issues_db = SeenIssuesDB()
client = GiteaClient(args.gitea_url, secrets.gitea_token())

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: