Keep source, config, and deploy files. Leave runtime data, uploads, and logs out of git. Co-authored-by: Cursor <cursoragent@cursor.com>
60 lines
2.0 KiB
TOML
60 lines
2.0 KiB
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 = "${env:PORT:-5670}"
|
|
# CORS allowed origins: '*' allows all; set comma-separated origins to restrict.
|
|
cors_allowed_origins = "${env:DBGPT_CORS_ALLOWED_ORIGINS:-*}"
|
|
# Product history is in Mongo. Engine SQLite keeps GPTs message tables.
|
|
disable_alembic_upgrade = true
|
|
|
|
[service.web.agent_context]
|
|
# Agent context-window budget. Set max_context_tokens to 0 to auto-detect from
|
|
# the selected model's metadata. The effective budget shown in the UI is
|
|
# max_context_tokens - reserved_tokens.
|
|
max_context_tokens = 256000
|
|
reserved_tokens = 65536
|
|
warning_threshold = 0.70
|
|
error_threshold = 0.90
|
|
critical_threshold = 0.95
|
|
min_keep_recent_rounds = 3
|
|
max_observation_age_rounds = 5
|
|
truncated_observation_max_chars = 200
|
|
min_keep_tokens = 10000
|
|
max_compact_failures = 3
|
|
# Per dispatch_parallel_tasks call. DBGPT_MAX_PARALLEL_SUBAGENTS overrides it.
|
|
max_parallel_subagents = 3
|
|
|
|
[service.web.database]
|
|
type = "sqlite"
|
|
path = "data/meta/kamidso-engine.db"
|
|
|
|
[rag.storage]
|
|
[rag.storage.vector]
|
|
type = "chroma"
|
|
persist_path = "${env:KAMIDSO_VECTORS_PATH:-data/vectors}"
|
|
|
|
# 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}"
|
|
# Concurrent in-flight LLM streams. 40 covers ~10 chats with subagent fan-out.
|
|
concurrency = 40
|
|
# Hybrid thinking models (e.g. Qwen3 on OpenRouter): set LLM_REASONING_ENABLED=false
|
|
# in .env, or uncomment the next line to force-disable reasoning tokens.
|
|
# reasoning_enabled = false
|
|
|
|
[[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}"
|