mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
aider is AI pair programming in your terminal
https://aider.chat/
![]() # Context: USER: add a --model MODEL arg, and change -3 to store 'gpt-3-5-turbo' in the model arg. add a new arg -4 which stores 'gpt-4' in the model arg. ASSISTANT: To add a `--model MODEL` argument and modify the `-3` and `-4` arguments, you can update the `main` function as follows: ```python coder.py <<<<<<< ORIGINAL parser.add_argument( "-3", "--gpt-3-5-turbo", action="store_true", help="Only use gpt-3.5-turbo, not gpt-4", ) ======= parser.add_argument( "--model", metavar="MODEL", default="gpt-3.5-turbo", help="Specify the model to use (default: gpt-3.5-turbo)", ) parser.add_argument( "-3", action="store_const", dest="model", const="gpt-3.5-turbo", help="Use gpt-3.5-turbo model", ) parser.add_argument( "-4", action="store_const", dest="model", const="gpt-4", help="Use gpt-4 model", ) >>>>>>> UPDATED ``` This change adds the `--model MODEL` argument, modifies the `-3` argument to store `'gpt-3-5-turbo'` in the `model` argument, and adds a new `-4` argument to store `'gpt-4'` in the `model` argument. |
||
---|---|---|
.flake8 | ||
.pre-commit-config.yaml | ||
coder.py | ||
dump.py | ||
prompts.py |