From bb4f8a2fb2f02e9a8e25305baf45d76a2b601fdf Mon Sep 17 00:00:00 2001 From: Reinier van der Leer Date: Fri, 3 May 2024 21:17:08 +0200 Subject: [PATCH] Add `ANTHROPIC_API_KEY` to .env.template and docs --- autogpts/autogpt/.env.template | 7 +++++-- docs/content/AutoGPT/configuration/options.md | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/autogpts/autogpt/.env.template b/autogpts/autogpt/.env.template index ba514c56b0c..14c7bcaa5d5 100644 --- a/autogpts/autogpt/.env.template +++ b/autogpts/autogpt/.env.template @@ -2,8 +2,11 @@ ### AutoGPT - GENERAL SETTINGS ################################################################################ -## OPENAI_API_KEY - OpenAI API Key (Example: my-openai-api-key) -OPENAI_API_KEY=your-openai-api-key +## OPENAI_API_KEY - OpenAI API Key (Example: sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) +# OPENAI_API_KEY= + +## ANTHROPIC_API_KEY - Anthropic API Key (Example: sk-ant-api03-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx) +# ANTHROPIC_API_KEY= ## TELEMETRY_OPT_IN - Share telemetry on errors and other issues with the AutoGPT team, e.g. through Sentry. ## This helps us to spot and solve problems earlier & faster. (Default: DISABLED) diff --git a/docs/content/AutoGPT/configuration/options.md b/docs/content/AutoGPT/configuration/options.md index 9003c7378f6..17602102ba6 100644 --- a/docs/content/AutoGPT/configuration/options.md +++ b/docs/content/AutoGPT/configuration/options.md @@ -7,6 +7,7 @@ Configuration is controlled through the `Config` object. You can set configurati - `AI_SETTINGS_FILE`: Location of the AI Settings file relative to the AutoGPT root directory. Default: ai_settings.yaml - `AUDIO_TO_TEXT_PROVIDER`: Audio To Text Provider. Only option currently is `huggingface`. Default: huggingface - `AUTHORISE_COMMAND_KEY`: Key response accepted when authorising commands. Default: y +- `ANTHROPIC_API_KEY`: Set this if you want to use Anthropic models with AutoGPT - `AZURE_CONFIG_FILE`: Location of the Azure Config file relative to the AutoGPT root directory. Default: azure.yaml - `BROWSE_CHUNK_MAX_LENGTH`: When browsing website, define the length of chunks to summarize. Default: 3000 - `BROWSE_SPACY_LANGUAGE_MODEL`: [spaCy language model](https://spacy.io/usage/models) to use when creating chunks. Default: en_core_web_sm