mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-09-11 05:49:22 +00:00
34 lines
873 B
TOML
34 lines
873 B
TOML
[system]
|
|
# Load language from environment variable(It is set by the hook)
|
|
language = "${env:DBGPT_LANG:-en}"
|
|
api_keys = []
|
|
encrypt_key = "your_secret_key"
|
|
|
|
# Server Configurations
|
|
[service.web]
|
|
host = "0.0.0.0"
|
|
port = 5670
|
|
|
|
[service.web.database]
|
|
type = "sqlite"
|
|
path = "pilot/meta_data/dbgpt.db"
|
|
|
|
[rag.storage]
|
|
[rag.storage.vector]
|
|
type = "chroma"
|
|
persist_path = "pilot/data"
|
|
|
|
# Model Configurations
|
|
[models]
|
|
[[models.llms]]
|
|
name = "${env:LLM_MODEL_NAME:-gpt-4o}"
|
|
provider = "${env:LLM_MODEL_PROVIDER:-proxy/openai}"
|
|
api_base = "${env:OPENAI_API_BASE:-https://api.openai.com/v1}"
|
|
api_key = "${env:OPENAI_API_KEY}"
|
|
|
|
[[models.embeddings]]
|
|
name = "${env:EMBEDDING_MODEL_NAME:-text-embedding-3-small}"
|
|
provider = "${env:EMBEDDING_MODEL_PROVIDER:-proxy/openai}"
|
|
api_url = "${env:EMBEDDING_MODEL_API_URL:-https://api.openai.com/v1/embeddings}"
|
|
api_key = "${env:OPENAI_API_KEY}"
|