This commit is contained in:
Paul Gauthier 2024-07-16 16:04:10 +01:00
parent 61988433fa
commit bc4d5ebe88
13 changed files with 16 additions and 14 deletions

View file

@ -49,7 +49,7 @@ Use the `--browser` switch to launch the browser version of aider:
pip install aider-chat pip install aider-chat
export OPENAI_API_KEY=<key> # Mac/Linux export OPENAI_API_KEY=<key> # Mac/Linux
setx OPENAI_API_KEY <key> # Windows setx OPENAI_API_KEY <key> # Windows, restart shell after setx
aider --browser aider --browser
``` ```

View file

@ -119,7 +119,7 @@ you can get started quickly with aider and Sonnet like this:
$ pip install aider-chat $ pip install aider-chat
$ export ANTHROPIC_API_KEY=<key> # Mac/Linux $ export ANTHROPIC_API_KEY=<key> # Mac/Linux
$ setx ANTHROPIC_API_KEY <key> # Windows $ setx ANTHROPIC_API_KEY <key> # Windows, restart shell after setx
$ aider $ aider
``` ```

View file

@ -17,7 +17,7 @@ has been tested and benchmarked to work well with them:
pip install aider-chat pip install aider-chat
export ANTHROPIC_API_KEY=<key> # Mac/Linux export ANTHROPIC_API_KEY=<key> # Mac/Linux
setx ANTHROPIC_API_KEY <key> # Windows setx ANTHROPIC_API_KEY <key> # Windows, restart shell after setx
# Aider uses Claude 3.5 Sonnet by default (or use --sonnet) # Aider uses Claude 3.5 Sonnet by default (or use --sonnet)
aider aider

View file

@ -15,10 +15,11 @@ export AZURE_API_KEY=<key>
export AZURE_API_VERSION=2023-05-15 export AZURE_API_VERSION=2023-05-15
export AZURE_API_BASE=https://myendpt.openai.azure.com export AZURE_API_BASE=https://myendpt.openai.azure.com
# Windows: # Windows
setx AZURE_API_KEY <key> setx AZURE_API_KEY <key>
setx AZURE_API_VERSION 2023-05-15 setx AZURE_API_VERSION 2023-05-15
setx AZURE_API_BASE https://myendpt.openai.azure.com setx AZURE_API_BASE https://myendpt.openai.azure.com
# ... restart your shell after setx commands
aider --model azure/<your_deployment_name> aider --model azure/<your_deployment_name>

View file

@ -16,7 +16,7 @@ To use **Command-R+**:
pip install aider-chat pip install aider-chat
export COHERE_API_KEY=<key> # Mac/Linux export COHERE_API_KEY=<key> # Mac/Linux
setx COHERE_API_KEY <key> # Windows setx COHERE_API_KEY <key> # Windows, restart shell after setx
aider --model command-r-plus aider --model command-r-plus

View file

@ -12,7 +12,7 @@ The DeepSeek Coder V2 model gets the top score on aider's code editing benchmark
pip install aider-chat pip install aider-chat
export DEEPSEEK_API_KEY=<key> # Mac/Linux export DEEPSEEK_API_KEY=<key> # Mac/Linux
setx DEEPSEEK_API_KEY <key> # Windows setx DEEPSEEK_API_KEY <key> # Windows, restart shell after setx
# Use DeepSeek Coder V2 # Use DeepSeek Coder V2
aider --model deepseek/deepseek-coder aider --model deepseek/deepseek-coder

View file

@ -15,7 +15,7 @@ You'll need a [Gemini API key](https://aistudio.google.com/app/u/2/apikey).
pip install aider-chat pip install aider-chat
export GEMINI_API_KEY=<key> # Mac/Linux export GEMINI_API_KEY=<key> # Mac/Linux
setx GEMINI_API_KEY <key> # Windows setx GEMINI_API_KEY <key> # Windows, restart shell after setx
aider --model gemini/gemini-1.5-pro-latest aider --model gemini/gemini-1.5-pro-latest

View file

@ -16,7 +16,7 @@ To use **Llama3 70B**:
pip install aider-chat pip install aider-chat
export GROQ_API_KEY=<key> # Mac/Linux export GROQ_API_KEY=<key> # Mac/Linux
setx GROQ_API_KEY <key> # Windows setx GROQ_API_KEY <key> # Windows, restart shell after setx
aider --model groq/llama3-70b-8192 aider --model groq/llama3-70b-8192

View file

@ -18,7 +18,7 @@ ollama serve
pip install aider-chat pip install aider-chat
export OLLAMA_API_BASE=http://127.0.0.1:11434 # Mac/Linux export OLLAMA_API_BASE=http://127.0.0.1:11434 # Mac/Linux
setx OLLAMA_API_BASE http://127.0.0.1:11434 # Windows setx OLLAMA_API_BASE http://127.0.0.1:11434 # Windows, restart shell after setx
aider --model ollama/<model> aider --model ollama/<model>
``` ```
@ -32,7 +32,7 @@ ollama serve
# In another terminal window... # In another terminal window...
export OLLAMA_API_BASE=http://127.0.0.1:11434 # Mac/Linux export OLLAMA_API_BASE=http://127.0.0.1:11434 # Mac/Linux
setx OLLAMA_API_BASE http://127.0.0.1:11434 # Windows setx OLLAMA_API_BASE http://127.0.0.1:11434 # Windows, restart shell after setx
aider --model ollama/llama3:70b aider --model ollama/llama3:70b
``` ```

View file

@ -17,6 +17,7 @@ export OPENAI_API_KEY=<key>
# Windows: # Windows:
setx OPENAI_API_BASE <endpoint> setx OPENAI_API_BASE <endpoint>
setx OPENAI_API_KEY <key> setx OPENAI_API_KEY <key>
# ... restart shell after setx commands
# Prefix the model name with openai/ # Prefix the model name with openai/
aider --model openai/<model-name> aider --model openai/<model-name>

View file

@ -17,7 +17,7 @@ has been tested and benchmarked to work well with them:
pip install aider-chat pip install aider-chat
export OPENAI_API_KEY=<key> # Mac/Linux export OPENAI_API_KEY=<key> # Mac/Linux
setx OPENAI_API_KEY <key> # Windows setx OPENAI_API_KEY <key> # Windows, restart shell after setx
# Aider uses gpt-4o by default (or use --4o) # Aider uses gpt-4o by default (or use --4o)
aider aider

View file

@ -12,7 +12,7 @@ You'll need an [OpenRouter API key](https://openrouter.ai/keys).
pip install aider-chat pip install aider-chat
export OPENROUTER_API_KEY=<key> # Mac/Linux export OPENROUTER_API_KEY=<key> # Mac/Linux
setx OPENROUTER_API_KEY <key> # Windows setx OPENROUTER_API_KEY <key> # Windows, restart shell after setx
# Or any other open router model # Or any other open router model
aider --model openrouter/<provider>/<model> aider --model openrouter/<provider>/<model>
@ -27,7 +27,7 @@ In particular, Llama3 70B works well with aider, at low cost:
pip install aider-chat pip install aider-chat
export OPENROUTER_API_KEY=<key> # Mac/Linux export OPENROUTER_API_KEY=<key> # Mac/Linux
setx OPENROUTER_API_KEY <key> # Windows setx OPENROUTER_API_KEY <key> # Windows, restart shell after setx
aider --model openrouter/meta-llama/llama-3-70b-instruct aider --model openrouter/meta-llama/llama-3-70b-instruct
``` ```

View file

@ -51,7 +51,7 @@ Use the `--browser` switch to launch the browser version of aider:
pip install aider-chat pip install aider-chat
export OPENAI_API_KEY=<key> # Mac/Linux export OPENAI_API_KEY=<key> # Mac/Linux
setx OPENAI_API_KEY <key> # Windows setx OPENAI_API_KEY <key> # Windows, restart shell after setx
aider --browser aider --browser
``` ```