From f8b30e0703e9d7bafd6971a987412426536c37d8 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 5 Jun 2024 20:58:34 -0700 Subject: [PATCH] added .env docs --- website/docs/llms.md | 28 ---------------------------- website/docs/llms/dotenv.md | 28 ++++++++++++++++++++++++++++ 2 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 website/docs/llms/dotenv.md diff --git a/website/docs/llms.md b/website/docs/llms.md index 8849e54a8..143cf92a4 100644 --- a/website/docs/llms.md +++ b/website/docs/llms.md @@ -48,31 +48,3 @@ this is usually because the model isn't capable of properly returning "code edits". Models weaker than GPT 3.5 may have problems working well with aider. -# Using a .env file - -Aider will read environment variables from a `.env` file in -root of your git repo or in current directory. -You can give it an explicit file to load with the `--env-file ` parameter. - -You can use a `.env` file to store various keys and other settings for the -models you use with aider. - -Here is an example `.env` file: - -``` -OPENAI_API_KEY= -ANTHROPIC_API_KEY= -GROQ_API_KEY= -OPENROUTER_API_KEY= - -AZURE_API_KEY= -AZURE_API_VERSION=2023-05-15 -AZURE_API_BASE=https://example-endpoint.openai.azure.com - -OLLAMA_API_BASE=http://127.0.0.1:11434 -``` - - - - - diff --git a/website/docs/llms/dotenv.md b/website/docs/llms/dotenv.md new file mode 100644 index 000000000..33af0020c --- /dev/null +++ b/website/docs/llms/dotenv.md @@ -0,0 +1,28 @@ +--- +parent: Connecting to LLMs +nav_order: 900 +--- + +# Using a .env file + +You can use a `.env` file to store various keys and other settings for the +models you use with aider. + +Aider will look for a `.env` file in the +root of your git repo or in the current directory. +You can give it an explicit file to load with the `--env-file ` parameter. + +Here is an example `.env` file: + +``` +OPENAI_API_KEY= +ANTHROPIC_API_KEY= +GROQ_API_KEY= +OPENROUTER_API_KEY= + +AZURE_API_KEY= +AZURE_API_VERSION=2023-05-15 +AZURE_API_BASE=https://example-endpoint.openai.azure.com + +OLLAMA_API_BASE=http://127.0.0.1:11434 +```