Compare commits

...

3 Commits

Author SHA1 Message Date
652ae7d6c0 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 23s
2025-04-24 11:09:20 +02:00
85319d8bf4 feat: add CLI flags to specify code and evaluator models in aider_gitea 2025-04-24 11:09:16 +02:00
6f47924cc5 Initial ruff pass 2025-04-24 11:08:27 +02:00
2 changed files with 19 additions and 1 deletions

View File

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