From 8800432dd77dce25f8abc82fc1e59d0de1f93175 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 2 May 2024 07:52:20 -0700 Subject: [PATCH] aider: Added `# Windows: setx` versions of all the `export` commands. # Aider chat conversation: USER: add `# Windows: setx` versions of all the `export` commands, like the first one ASSISTANT: Here are the changes to add `# Windows: setx` versions of all the `export` commands: docs/llms.md markdown <<<<<<< SEARCH export ANTHROPIC_API_KEY= ======= export ANTHROPIC_API_KEY= # Windows: setx ANTHROPIC_API_KEY >>>>>>> REPLACE docs/llms.md markdown <<<<<<< SEARCH export GEMINI_API_KEY= ======= export GEMINI_API_KEY= # Windows: setx GEMINI_API_KEY >>>>>>> REPLACE docs/llms.md markdown <<<<<<< SEARCH export GROQ_API_KEY= ======= export GROQ_API_KEY= # Windows: setx GROQ_API_KEY >>>>>>> REPLACE docs/llms.md markdown <<<<<<< SEARCH export COHERE_API_KEY= ======= export COHERE_API_KEY= # Windows: setx COHERE_API_KEY >>>>>>> REPLACE docs/llms.md markdown <<<<<<< SEARCH export AZURE_API_KEY= export AZURE_API_VERSION=2023-05-15 export AZURE_API_BASE=https://example-endpoint.openai.azure.com ======= export AZURE_API_KEY= # Windows: setx AZURE_API_KEY export AZURE_API_VERSION=2023-05-15 # Windows: setx AZURE_API_VERSION 2023-05-15 export AZURE_API_BASE=https://example-endpoint.openai.azure.com # Windows: setx AZURE_API_BASE https://example-endpoint.openai.azure.com >>>>>>> REPLACE docs/llms.md markdown <<<<<<< SEARCH export OPENROUTER_API_KEY= ======= export OPENROUTER_API_KEY= # Windows: setx OPENROUTER_API_KEY >>>>>>> REPLACE docs/llms.md markdown <<<<<<< SEARCH export OLLAMA_API_BASE=http://127.0.0.1:11434 ======= export OLLAMA_API_BASE=http://127.0.0.1:11434 # Windows: setx OLLAMA_API_BASE http://127.0.0.1:11434 >>>>>>> REPLACE docs/llms.md markdown <<<<<<< SEARCH export OPENAI_API_KEY= export OPENAI_API_BASE=https://api.deepseek.com/v1 ======= export OPENAI_API_KEY= # Windows: setx OPENAI_API_KEY export OPENAI_API_BASE=https://api.deepseek.com/v1 # Windows: setx OPENAI_API_BASE https://api.deepseek.com/v1 >>>>>>> REPLACE docs/llms.md markdown <<<<<<< SEARCH export OPENAI_API_BASE= # If your endpoint needs a key export OPENAI_API_KEY= ======= export OPENAI_API_BASE= # Windows: setx OPENAI_API_BASE # If your endpoint needs a key export OPENAI_API_KEY= # Windows: setx OPENAI_API_KEY >>>>>>> REPLACE --- docs/llms.md | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/docs/llms.md b/docs/llms.md index 228728ba3..601944f94 100644 --- a/docs/llms.md +++ b/docs/llms.md @@ -99,7 +99,7 @@ has been tested and benchmarked to work well with them: ``` pip install aider-chat -export ANTHROPIC_API_KEY= +export ANTHROPIC_API_KEY= # Windows: setx ANTHROPIC_API_KEY # Claude 3 Opus aider --opus @@ -125,7 +125,7 @@ You'll need a [Gemini API key](https://aistudio.google.com/app/u/2/apikey). ``` pip install aider-chat -export GEMINI_API_KEY= +export GEMINI_API_KEY= # Windows: setx GEMINI_API_KEY aider --model gemini/gemini-1.5-pro-latest # List models available from Gemini @@ -143,7 +143,7 @@ To use **Llama3 70B**: ``` pip install aider-chat -export GROQ_API_KEY= +export GROQ_API_KEY= # Windows: setx GROQ_API_KEY aider --model groq/llama3-70b-8192 # List models available from Groq @@ -162,7 +162,7 @@ To use **Command-R+**: ``` pip install aider-chat -export COHERE_API_KEY= +export COHERE_API_KEY= # Windows: setx COHERE_API_KEY aider --model command-r-plus # List models available from Cohere @@ -175,9 +175,9 @@ Aider can connect to the OpenAI models on Azure. ``` pip install aider-chat -export AZURE_API_KEY= -export AZURE_API_VERSION=2023-05-15 -export AZURE_API_BASE=https://example-endpoint.openai.azure.com +export AZURE_API_KEY= # Windows: setx AZURE_API_KEY +export AZURE_API_VERSION=2023-05-15 # Windows: setx AZURE_API_VERSION 2023-05-15 +export AZURE_API_BASE=https://example-endpoint.openai.azure.com # Windows: setx AZURE_API_BASE https://example-endpoint.openai.azure.com aider --model azure/ # List models available from Azure @@ -191,7 +191,7 @@ You'll need an [OpenRouter API key](https://openrouter.ai/keys). ``` pip install aider-chat -export OPENROUTER_API_KEY= +export OPENROUTER_API_KEY= # Windows: setx OPENROUTER_API_KEY # Or any other open router model aider --model openrouter// @@ -222,7 +222,7 @@ ollama serve # In another terminal window pip install aider-chat -export OLLAMA_API_BASE=http://127.0.0.1:11434 +export OLLAMA_API_BASE=http://127.0.0.1:11434 # Windows: setx OLLAMA_API_BASE http://127.0.0.1:11434 aider --model ollama/ ``` @@ -250,8 +250,8 @@ They appear to grant 5M tokens of free API usage to new accounts. ``` pip install aider-chat -export OPENAI_API_KEY= -export OPENAI_API_BASE=https://api.deepseek.com/v1 +export OPENAI_API_KEY= # Windows: setx OPENAI_API_KEY +export OPENAI_API_BASE=https://api.deepseek.com/v1 # Windows: setx OPENAI_API_BASE https://api.deepseek.com/v1 aider --model openai/deepseek-coder ``` @@ -266,10 +266,10 @@ Aider can connect to any LLM which is accessible via an OpenAI compatible API en ``` pip install aider-chat -export OPENAI_API_BASE= +export OPENAI_API_BASE= # Windows: setx OPENAI_API_BASE -# If your endpoint needs a key -export OPENAI_API_KEY= +# If your endpoint needs a key +export OPENAI_API_KEY= # Windows: setx OPENAI_API_KEY # Prefix the model name with openai/ aider --model openai/ @@ -406,4 +406,4 @@ AZURE_API_VERSION=2023-05-15 AZURE_API_BASE=https://example-endpoint.openai.azure.com OLLAMA_API_BASE=http://127.0.0.1:11434 -``` \ No newline at end of file +```