MetaGPT/config/config.yaml

68 lines
2.2 KiB
YAML
Raw Normal View History

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-07-07 14:00:43 +08:00
#### if OpenAI
2023-08-01 15:16:33 +08:00
## The official OPENAI_API_BASE is https://api.openai.com/v1
## If the official OPENAI_API_BASE 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_API_BASE.
2023-08-01 15:22:38 +08:00
OPENAI_API_BASE: "https://api.openai.com/v1"
#OPENAI_PROXY: "http://127.0.0.1:8118"
2023-07-30 15:56:11 +08:00
#OPENAI_API_KEY: "YOUR_API_KEY"
2023-06-30 17:10:48 +08:00
OPENAI_API_MODEL: "gpt-4"
MAX_TOKENS: 1500
RPM: 10
#### if Anthropic
#Anthropic_API_KEY: "YOUR_API_KEY"
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"
#OPENAI_API_BASE: "YOUR_AZURE_ENDPOINT"
#OPENAI_API_KEY: "YOUR_AZURE_API_KEY"
#OPENAI_API_VERSION: "YOUR_AZURE_API_VERSION"
#DEPLOYMENT_ID: "YOUR_DEPLOYMENT_ID"
#### for Search
2023-06-30 17:10:48 +08:00
## Visit https://serpapi.com/ to get key.
#SERPAPI_API_KEY: "YOUR_API_KEY"
## 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-07-22 09:36:33 +08:00
## Visit https://serper.dev/ to get key.
#SERPER_API_KEY: "YOUR_API_KEY"
2023-07-07 13:57:42 +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
#### for Stable Diffusion
## Use SD service, based on https://github.com/AUTOMATIC1111/stable-diffusion-webui
2023-07-22 09:39:02 +08:00
SD_URL: "YOUR_SD_URL"
SD_T2I_API: "/sdapi/v1/txt2img"
#### for Execution
#LONG_TERM_MEMORY: false
2023-07-27 22:58:19 +08:00
#### for Mermaid CLI
## 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"
### for update_costs & calc_usage
UPDATE_COSTS: false
CALC_USAGE: false