From 3f49acf39011944ee5c66478e54ea80012a04c54 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Fri, 9 May 2025 08:10:39 -0700 Subject: [PATCH] feat: Allow specifying aider model in update-history.py --- scripts/update-history.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/scripts/update-history.py b/scripts/update-history.py index f5fde9106..122d26737 100755 --- a/scripts/update-history.py +++ b/scripts/update-history.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 +import argparse import os import re import subprocess @@ -69,6 +70,11 @@ def run_plain_git_log(): def main(): + parser = argparse.ArgumentParser(description="Update HISTORY.md using aider.") + parser.add_argument( + "model", nargs="?", default="o3", help="The model to use with aider (default: o3)" + ) + args = parser.parse_args() # Get the git log and diff output log_content = run_git_log() plain_log_content = run_plain_git_log() @@ -137,7 +143,7 @@ def main(): "--no-git", "--no-auto-lint", "--model", - "o3", + args.model, ] subprocess.run(cmd)