This commit is contained in:
Paul Gauthier 2024-06-25 15:09:58 -07:00
parent 17f7297d86
commit 56a9463db8

View file

@ -37,26 +37,31 @@ Use /help to see in-chat commands, run with --help to see cmd line args
## Adding files ## Adding files
Just add the files that the aider will need to *edit*. Add the files that the aider will need to *edit*.
Don't add a bunch of extra files.
If you add too many files, the LLM can get overwhelmed If you add too many files, the LLM can get overwhelmed
and confused (and it costs more tokens). and confused (and it costs more tokens).
Aider will automatically Aider will automatically
pull in content from related files so that it can pull in content from related files so that it can
[understand the rest of your code base](https://aider.chat/docs/repomap.html). [understand the rest of your code base](https://aider.chat/docs/repomap.html).
You can also run aider without naming any files and use the in-chat You add files to the chat by naming them on the aider command line.
Or, you can use the in-chat
`/add` command to add files. `/add` command to add files.
Or you can skip adding files completely, and aider You can use aider without adding any files,
will try to figure out which files need to be edited based and it will try to figure out which files need to be edited based
on your requests. on your requests.
But you'll get the best results if you add the files that need
to edited.
## LLMs ## LLMs
Aider uses GPT-4o by default, but you can Aider uses GPT-4o by default, but you can
[connect to many different LLMs](/docs/llms.html). [connect to many different LLMs](/docs/llms.html).
Claude 3 Opus is another model which works very well with aider, Claude 3.5 Sonnet is also works very well with aider,
which you can use by running `aider --opus`. which you can use by running `aider --sonnet`.
You can run `aider --model XXX` to launch aider with You can run `aider --model XXX` to launch aider with
a specific model. a specific model.
@ -68,8 +73,8 @@ Or, during your chat you can switch models with the in-chat
Ask aider to make changes to your code. Ask aider to make changes to your code.
It will show you some diffs of the changes it is making to It will show you some diffs of the changes it is making to
complete you request. complete you request.
Aider will git commit all of its changes, [Aider will git commit all of its changes](/docs/git.html),
so they are easy to track and undo. so they are easy to track and undo.
You can always use the `/undo` command to undo changes you don't You can always use the `/undo` command to undo AI changes that you don't
like. like.