2023-07-07 14:00:43 +08:00
# DO NOT MODIFY THIS FILE, create a new key.yaml, define OPENAI_API_KEY.
2023-07-07 13:57:42 +08:00
# The configuration of key.yaml has a higher priority and will not enter git
2023-12-15 18:48:43 +08:00
#### Project Path Setting
# WORKSPACE_PATH: "Path for placing output files"
2023-07-07 14:00:43 +08:00
#### if OpenAI
2023-12-05 15:27:57 +08:00
## The official OPENAI_BASE_URL is https://api.openai.com/v1
2023-11-29 20:23:15 +08:00
## If the official OPENAI_BASE_URL is not available, we recommend using the [openai-forward](https://github.com/beidongjiedeguang/openai-forward).
## Or, you can configure OPENAI_PROXY to access official OPENAI_BASE_URL.
2023-12-05 15:27:57 +08:00
OPENAI_BASE_URL : "https://api.openai.com/v1"
2023-07-25 00:23:37 +08:00
#OPENAI_PROXY: "http://127.0.0.1:8118"
2023-11-27 15:48:07 +08:00
#OPENAI_API_KEY: "YOUR_API_KEY" # set the value to sk-xxx if you host the openai interface for open llm model
OPENAI_API_MODEL : "gpt-4-1106-preview"
MAX_TOKENS : 4096
2023-06-30 17:10:48 +08:00
RPM : 10
2023-12-15 20:32:16 +08:00
LLM_TYPE : OpenAI # Except for these three major models – OpenAI, MetaGPT LLM, and Azure – other large models can be distinguished based on the validity of the key.
2023-12-24 12:30:08 +08:00
TIMEOUT : 60 # Timeout for llm invocation
2023-06-30 17:10:48 +08:00
2023-10-18 22:49:10 +08:00
#### if Spark
2023-10-18 23:42:38 +08:00
#SPARK_APPID : "YOUR_APPID"
#SPARK_API_SECRET : "YOUR_APISecret"
#SPARK_API_KEY : "YOUR_APIKey"
2023-10-18 22:49:10 +08:00
#DOMAIN : "generalv2"
#SPARK_URL : "ws://spark-api.xf-yun.com/v2.1/chat"
2023-07-22 12:12:46 +08:00
#### if Anthropic
2023-12-19 16:54:06 +08:00
#ANTHROPIC_API_KEY: "YOUR_API_KEY"
2023-07-22 12:12:46 +08:00
2023-07-07 13:57:42 +08:00
#### if AZURE, check https://github.com/openai/openai-cookbook/blob/main/examples/azure/chat.ipynb
#OPENAI_API_TYPE: "azure"
2023-11-29 20:23:15 +08:00
#OPENAI_BASE_URL: "YOUR_AZURE_ENDPOINT"
2023-07-07 13:57:42 +08:00
#OPENAI_API_KEY: "YOUR_AZURE_API_KEY"
#OPENAI_API_VERSION: "YOUR_AZURE_API_VERSION"
2023-09-05 20:36:32 +08:00
#DEPLOYMENT_NAME: "YOUR_DEPLOYMENT_NAME"
2023-07-07 13:57:42 +08:00
2023-11-18 21:28:49 +08:00
#### if zhipuai from `https://open.bigmodel.cn`. You can set here or export API_KEY="YOUR_API_KEY"
2023-11-20 14:46:31 +08:00
# ZHIPUAI_API_KEY: "YOUR_API_KEY"
2023-11-18 21:28:49 +08:00
2023-12-14 16:45:40 +08:00
#### if Google Gemini from `https://ai.google.dev/` and API_KEY from `https://makersuite.google.com/app/apikey`.
#### You can set here or export GOOGLE_API_KEY="YOUR_API_KEY"
# GEMINI_API_KEY: "YOUR_API_KEY"
2023-11-23 01:46:14 +08:00
#### if use self-host open llm model with openai-compatible interface
#OPEN_LLM_API_BASE: "http://127.0.0.1:8000/v1"
#OPEN_LLM_API_MODEL: "llama2-13b"
#
##### if use Fireworks api
#FIREWORKS_API_KEY: "YOUR_API_KEY"
#FIREWORKS_API_BASE: "https://api.fireworks.ai/inference/v1"
#FIREWORKS_API_MODEL: "YOUR_LLM_MODEL" # example, accounts/fireworks/models/llama-v2-13b-chat
2023-12-23 19:48:01 +08:00
#### if use self-host open llm model by ollama
# OLLAMA_API_BASE: http://127.0.0.1:11434/api
# OLLAMA_API_MODEL: llama2
2023-07-07 13:57:42 +08:00
#### for Search
2023-08-17 17:37:20 +08:00
## Supported values: serpapi/google/serper/ddg
#SEARCH_ENGINE: serpapi
2023-06-30 17:10:48 +08:00
## Visit https://serpapi.com/ to get key.
#SERPAPI_API_KEY: "YOUR_API_KEY"
2023-08-17 17:37:20 +08:00
2023-06-30 17:10:48 +08:00
## Visit https://console.cloud.google.com/apis/credentials to get key.
#GOOGLE_API_KEY: "YOUR_API_KEY"
## Visit https://programmablesearchengine.google.com/controlpanel/create to get id.
#GOOGLE_CSE_ID: "YOUR_CSE_ID"
2023-08-17 17:37:20 +08:00
2023-07-22 09:36:33 +08:00
## Visit https://serper.dev/ to get key.
2023-07-22 12:12:46 +08:00
#SERPER_API_KEY: "YOUR_API_KEY"
2023-07-07 13:57:42 +08:00
2023-07-25 00:23:37 +08:00
#### for web access
## Supported values: playwright/selenium
#WEB_BROWSER_ENGINE: playwright
## Supported values: chromium/firefox/webkit, visit https://playwright.dev/python/docs/api/class-browsertype
##PLAYWRIGHT_BROWSER_TYPE: chromium
## Supported values: chrome/firefox/edge/ie, visit https://www.selenium.dev/documentation/webdriver/browsers/
# SELENIUM_BROWSER_TYPE: chrome
2023-07-07 13:57:42 +08:00
#### for TTS
2023-07-03 13:11:45 +08:00
#AZURE_TTS_SUBSCRIPTION_KEY: "YOUR_API_KEY"
2023-07-07 14:00:43 +08:00
#AZURE_TTS_REGION: "eastus"
2023-07-22 09:39:02 +08:00
2023-07-22 12:12:46 +08:00
#### for Stable Diffusion
## Use SD service, based on https://github.com/AUTOMATIC1111/stable-diffusion-webui
2023-12-15 11:54:30 +08:00
#SD_URL: "YOUR_SD_URL"
#SD_T2I_API: "/sdapi/v1/txt2img"
2023-07-24 09:44:03 +08:00
#### for Execution
#LONG_TERM_MEMORY: false
2023-07-27 22:58:19 +08:00
#### for Mermaid CLI
2023-07-30 15:45:44 +08:00
## If you installed mmdc (Mermaid CLI) only for metagpt then enable the following configuration.
#PUPPETEER_CONFIG: "./config/puppeteer-config.json"
2023-08-01 21:35:14 +08:00
#MMDC: "./node_modules/.bin/mmdc"
2023-08-10 21:41:22 +08:00
2023-08-07 16:32:04 +08:00
### for calc_usage
2023-08-10 21:41:22 +08:00
# CALC_USAGE: false
2023-08-08 22:59:26 +08:00
### for Research
2023-12-15 11:54:30 +08:00
# MODEL_FOR_RESEARCHER_SUMMARY: gpt-3.5-turbo
# MODEL_FOR_RESEARCHER_REPORT: gpt-3.5-turbo-16k
2023-09-04 23:30:27 +08:00
### choose the engine for mermaid conversion,
2023-09-11 16:59:41 +08:00
# default is nodejs, you can change it to playwright,pyppeteer or ink
2023-09-13 14:39:51 +08:00
# MERMAID_ENGINE: nodejs
### browser path for pyppeteer engine, support Chrome, Chromium,MS Edge
2023-09-19 21:31:27 +08:00
#PYPPETEER_EXECUTABLE_PATH: "/usr/bin/google-chrome-stable"
2023-11-22 13:01:16 +08:00
### for repair non-openai LLM's output when parse json-text if PROMPT_FORMAT=json
### due to non-openai LLM's output will not always follow the instruction, so here activate a post-process
### repair operation on the content extracted from LLM's raw output. Warning, it improves the result but not fix all cases.
# REPAIR_LLM_OUTPUT: false
2023-12-15 17:05:09 +08:00
# PROMPT_FORMAT: json #json or markdown
2023-12-13 19:18:38 +08:00
### Agent configurations
# RAISE_NOT_CONFIG_ERROR: true # "true" if the LLM key is not configured, throw a NotConfiguredException, else "false".
2023-12-14 15:06:04 +08:00
# WORKSPACE_PATH_WITH_UID: false # "true" if using `{workspace}/{uid}` as the workspace path; "false" use `{workspace}`.
2023-08-18 19:29:51 +08:00
### Meta Models
2023-09-01 21:21:47 +08:00
#METAGPT_TEXT_TO_IMAGE_MODEL: MODEL_URL
### S3 config
2023-12-14 22:59:41 +08:00
#S3_ACCESS_KEY: "YOUR_S3_ACCESS_KEY"
#S3_SECRET_KEY: "YOUR_S3_SECRET_KEY"
#S3_ENDPOINT_URL: "YOUR_S3_ENDPOINT_URL"
#S3_SECURE: true # true/false
#S3_BUCKET: "YOUR_S3_BUCKET"
2023-09-04 11:42:14 +08:00
### Redis config
2023-12-14 22:59:41 +08:00
#REDIS_HOST: "YOUR_REDIS_HOST"
#REDIS_PORT: "YOUR_REDIS_PORT"
#REDIS_PASSWORD: "YOUR_REDIS_PASSWORD"
#REDIS_DB: "YOUR_REDIS_DB_INDEX, str, 0-based"
2023-12-14 15:06:04 +08:00
2023-12-23 21:56:19 +08:00
# DISABLE_LLM_PROVIDER_CHECK: false