mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 18:25:00 +00:00
copy
This commit is contained in:
parent
e63df83091
commit
cf74dc9b48
1 changed files with 13 additions and 1 deletions
|
@ -20,14 +20,26 @@ python -m pip install -U aider-chat
|
|||
export OLLAMA_API_BASE=http://127.0.0.1:11434 # Mac/Linux
|
||||
setx OLLAMA_API_BASE http://127.0.0.1:11434 # Windows, restart shell after setx
|
||||
|
||||
aider --model ollama/<model>
|
||||
aider --model ollama_chat/<model>
|
||||
```
|
||||
|
||||
{: .note }
|
||||
Using `ollama_chat/` is recommended over `ollama/`.
|
||||
|
||||
|
||||
See the [model warnings](warnings.html)
|
||||
section for information on warnings which will occur
|
||||
when working with models that aider is not familiar with.
|
||||
|
||||
## API Key
|
||||
|
||||
If you are using an ollama that requires an API key you can set `OLLAMA_API_KEY`:
|
||||
|
||||
```
|
||||
export OLLAMA_API_KEY=<api-key> # Mac/Linux
|
||||
setx OLLAMA_API_KEY <api-key> # Windows, restart shell after setx
|
||||
```
|
||||
|
||||
## Setting the context window size
|
||||
|
||||
[Ollama uses a 2k context window by default](https://github.com/ollama/ollama/blob/main/docs/faq.md#how-can-i-specify-the-context-window-size),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue