mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-23 13:54:59 +00:00
broke out instructions, added link to neovim #84
This commit is contained in:
parent
7e17059b59
commit
ceb84b2cdd
4 changed files with 90 additions and 43 deletions
26
docs/faq.md
26
docs/faq.md
|
@ -8,7 +8,7 @@ and their variants.
|
|||
|
||||
It seems to require model-specific tuning to get prompts and
|
||||
editing formats working well with a new model. For example, GPT-3.5 and GPT-4 use very
|
||||
different prompts and editing formats in aider right now.
|
||||
different prompts and editing formats in aider right now.
|
||||
Adopting new LLMs will probably require a similar effort to tailor the
|
||||
prompting and edit formats.
|
||||
|
||||
|
@ -46,27 +46,3 @@ might be useful background.
|
|||
User [imabutahersiddik](https://github.com/imabutahersiddik)
|
||||
has provided this
|
||||
[Colab notebook](https://colab.research.google.com/drive/1J9XynhrCqekPL5PR6olHP6eE--rnnjS9?usp=sharing).
|
||||
|
||||
|
||||
## How do I get ctags working?
|
||||
|
||||
First, be aware that ctags is completely optional and not required to use aider.
|
||||
Aider only attempts to use ctags with GPT-4,
|
||||
and currently doesn't use ctags with GPT-3.5.
|
||||
|
||||
If you wish to use ctags, you should consult the
|
||||
[universal ctags repo](https://github.com/universal-ctags/ctags)
|
||||
for official instructions on how to install it in your environment.
|
||||
You may be able to install a compatible version using these commands:
|
||||
|
||||
* Mac: `brew install universal-ctags`
|
||||
* Windows: `choco install universal-ctags`
|
||||
* Ubuntu: `sudo apt-get install universal-ctags`
|
||||
|
||||
Some things to be aware of:
|
||||
|
||||
* The `ctags` command needs to be on your shell path so that it will run by default when aider invokes `ctags ...`.
|
||||
* You need a build which includes the json feature. You can check by running `ctags --version` and looking for `+json` in the `Optional compiled features` list.
|
||||
|
||||
|
||||
|
||||
|
|
82
docs/install.md
Normal file
82
docs/install.md
Normal file
|
@ -0,0 +1,82 @@
|
|||
|
||||
# Installing aider
|
||||
|
||||
## Install the `aider-chat` package with pip from one of these sources:
|
||||
|
||||
* PyPI hosts the released and most stable version:
|
||||
* `python -m pip install aider-chat`
|
||||
* GitHub hosts the latest version, which is under active development:
|
||||
* `python -m pip install git+https://github.com/paul-gauthier/aider.git`
|
||||
* If you've git cloned the aider repository already, you can install "live" from your local copy. This is mostly useful if you are developing aider and want your current modifications to take effect immediately.
|
||||
* `python -m pip install -e .`
|
||||
|
||||
On Windows, you may need to run `py -m pip install ...` to install python packages.
|
||||
|
||||
## Provide your OpenAI API key
|
||||
|
||||
You need a
|
||||
[paid API key from OpenAI](https://help.openai.com/en/articles/4936850-where-do-i-find-my-secret-api-key)
|
||||
to use aider. Note that this is different than "ChatGPT Plus".
|
||||
|
||||
You can place your api key in an environment variable:
|
||||
|
||||
* `export OPENAI_API_KEY=sk-...` on Linux or Mac
|
||||
* `setx OPENAI_API_KEY sk-...` in Windows PowerShell
|
||||
|
||||
Or you can create a `.aider.conf.yml` file in your home directory or at the root of your git repo,
|
||||
alongside the `.git` dir. Put a line in it like this to specify your api key:
|
||||
|
||||
```
|
||||
openai-api-key: sk-...
|
||||
```
|
||||
|
||||
Finally, you could also just provide your key as a command line argument:
|
||||
|
||||
```
|
||||
aider --openai-api-key sk-...
|
||||
```
|
||||
|
||||
## Install git
|
||||
|
||||
Make sure you have git installed and available on your shell path.
|
||||
Here are
|
||||
[instructions for installing git in various environments](https://github.com/git-guides/install-git).
|
||||
|
||||
## Install universal ctags (optional)
|
||||
|
||||
Aider does not require ctags, and will operate just fine without it.
|
||||
|
||||
Installing ctags is helpful if you plan to use aider and GPT-4 with repositories
|
||||
that have more than a handful of files.
|
||||
This allows aider to build a
|
||||
[map of your entire git repo](https://aider.chat/docs/ctags.html)
|
||||
and share it with GPT to help it better understand and modify large codebases.
|
||||
|
||||
Aider only attempts to use ctags with GPT-4,
|
||||
and currently doesn't use ctags at all with GPT-3.5.
|
||||
So if your OpenAI API key doesn't support GPT-4, then you don't need ctags.
|
||||
|
||||
You should consult the
|
||||
[universal ctags repo](https://github.com/universal-ctags/ctags)
|
||||
for official instructions on how to install it in your environment.
|
||||
But you may be able to install a compatible version using these commands:
|
||||
|
||||
* Mac: `brew install universal-ctags`
|
||||
* Windows: `choco install universal-ctags`
|
||||
* Ubuntu: `sudo apt-get install universal-ctags`
|
||||
|
||||
Some things to be aware of:
|
||||
|
||||
* The `ctags` command needs to be on your shell path so that it will run by default when aider invokes `ctags ...`.
|
||||
* You need a build which includes the json feature. You can check by running `ctags --version` and looking for `+json` in the `Optional compiled features` list.
|
||||
|
||||
|
||||
## Add aider to your editor
|
||||
|
||||
(joshuavial)[https://github.com/joshuavial) has provided a NeoVim plugin for aider:
|
||||
|
||||
* https://github.com/joshuavial/aider.nvim
|
||||
|
||||
If you are interested in creating an aider plugin for your favorite editor,
|
||||
please let me know by opening a
|
||||
[GitHub issue](https://github.com/paul-gauthier/aider/issues).
|
Loading…
Add table
Add a link
Reference in a new issue