Compare commits

...

3 Commits

Author SHA1 Message Date
b8a68c62b9 Ruff after aider
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:12:23 +02:00
e27f5aeb93 feat: add CLI options to specify aider code and evaluator models 2025-04-24 09:12:18 +02:00
519a87423e Initial ruff pass 2025-04-24 09:11:50 +02:00
2 changed files with 17 additions and 1 deletions

View File

@ -45,12 +45,26 @@ def parse_args():
default=300,
help='Interval in seconds between checks in daemon mode (default: 300)',
)
parser.add_argument(
'--code-model',
default='o4-mini',
help='Aider code model to use (default: o4-mini)',
)
parser.add_argument(
'--evaluator-model',
default='ollama/gemma3:27b',
help='Evaluator model to use for verification (default: ollama/gemma3:27b)',
)
return parser.parse_args()
def main():
logging.basicConfig(level='INFO')
args = parse_args()
import aider_gitea as ag
ag.CODE_MODEL = args.code_model
ag.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: