aider is AI pair programming in your terminal https://aider.chat/
Find a file
Paul Gauthier e5e5a8e325 Add --model MODEL arg and modify -3 and -4 args to store gpt-3-5-turbo and gpt-4 in model arg.
# 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.
2023-05-08 23:10:25 -07:00
.flake8 debug 2023-05-08 22:55:55 -07:00
.pre-commit-config.yaml added flake8 2023-05-07 22:13:57 -07:00
coder.py Add --model MODEL arg and modify -3 and -4 args to store gpt-3-5-turbo and gpt-4 in model arg. 2023-05-08 23:10:25 -07:00
dump.py init 2023-04-19 09:03:23 -07:00
prompts.py prompts 2023-05-08 22:07:02 -07:00