feat: Allow specifying aider model in update-history.py

This commit is contained in:
Paul Gauthier (aider) 2025-05-09 08:10:39 -07:00
parent 77deb35022
commit 3f49acf390

View file

@ -1,5 +1,6 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import argparse
import os import os
import re import re
import subprocess import subprocess
@ -69,6 +70,11 @@ def run_plain_git_log():
def main(): 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 # Get the git log and diff output
log_content = run_git_log() log_content = run_git_log()
plain_log_content = run_plain_git_log() plain_log_content = run_plain_git_log()
@ -137,7 +143,7 @@ def main():
"--no-git", "--no-git",
"--no-auto-lint", "--no-auto-lint",
"--model", "--model",
"o3", args.model,
] ]
subprocess.run(cmd) subprocess.run(cmd)