FinDataPilot / .env.example
Fin-DataPilot Deploy Bot
ci: 094f52e
275d495
Raw History Blame Contribute Delete
3.13 kB
# ===== LLM =====
# LLM provider: minimax | openai | custom (OpenAI-compatible).
# An anthropic code path exists, but requires installing/testing langchain-anthropic first.
LLM_PROVIDER=minimax
LLM_BASE_URL=https://api.minimaxi.com/v1
LLM_API_KEY=your-api-key-here
LLM_MODEL=MiniMax-M3
LLM_TEMPERATURE=0.2
LLM_MAX_TOKENS=4096
# ===== iWencai / 问财 API (used by 4 skills) =====
IWENCAI_API_KEY=your-iwencai-api-key-here
# IWENCAI_SKILL_ID_OVERRIDES=financial-query=hithink-astock-selector,news-search=news-search
# ===== AnySearch (bundled web + vertical search skill) =====
# Optional: API key for higher rate limits. Without it, anonymous
# access is used. Get a key at https://anysearch.com/console/api-keys
ANYSEARCH_API_KEY=
# Path to the unpacked anysearch-skill/ directory. Leave empty to use
# the bundled Skills/anysearch-skill/ that ships with this repo.
ANYSEARCH_SKILL_DIR=
# Subprocess timeout in seconds (default 30).
ANYSEARCH_TIMEOUT=30
# ===== Server =====
DATA_PILOT_HOST=0.0.0.0
DATA_PILOT_PORT=7860
DATA_PILOT_ENV=development
# Required in production. Generate with: openssl rand -hex 32
AUTH_SECRET=change-me-before-production
# Renewable anonymous browser identity lifetime. Clearing browser storage or
# switching devices intentionally creates a new identity (there is no login).
AUTH_TOKEN_TTL_HOURS=8760
# Administrator-only endpoints (Skill management and diagnostics). Do not put
# this value in VITE_* variables or any public frontend build.
ADMIN_API_KEY=
# Legacy alias for ADMIN_API_KEY. Prefer ADMIN_API_KEY for new deployments.
API_KEY=
# ===== CORS =====
CORS_ALLOW_ORIGINS=http://localhost:5173,http://localhost:3000,http://127.0.0.1:5173
# ===== Storage =====
# Turso/libSQL is an unverified extension point: the current production
# requirements do not install a libSQL SQLAlchemy driver. Leave empty unless
# the driver, URL construction and integration tests have been added.
TURSO_DATABASE_URL=
TURSO_AUTH_TOKEN=
LOCAL_SQLITE_PATH=./data/findatapilot.db
# HF-only fallback when the persistent /data volume is unavailable. Data here
# is intentionally ephemeral; use HF persistent storage or a verified external
# database adapter for durable history.
HF_EPHEMERAL_DATA_PATH=/tmp/findatapilot
# ===== Session retention =====
# Maximum sessions retained per anonymous identity. 0 disables pruning.
MAX_SESSIONS_PER_USER=50
# ===== Memory =====
MEMORY_ENABLED=true
MEMORY_SHORT_TERM_TTL_DAYS=30
MEMORY_SHORT_SUMMARY_MAX_CHARS=4000
MEMORY_LONG_TERM_MAX_ITEMS=100
MEMORY_RECALL_MAX_ITEMS=12
# ===== Agent =====
# Values above 8 are clamped by the application.
AGENT_MAX_SKILL_CALLS=8
AGENT_MAX_PLANNING_CYCLES=5
AGENT_SKILL_RESOURCE_MAX_CHARS=12000
AGENT_MAX_PARALLEL_SKILLS=1
AGENT_ENABLE_REFLECTION=true
AGENT_RUN_TIMEOUT_SECONDS=600
# Disabled by default. Prompt-only uploads require this AND ADMIN_API_KEY.
# Python code uploads are always rejected in the API process.
ENABLE_SKILL_UPLOAD=false
# ===== Observability =====
# Reserved extension point. LangFuse tracing is not wired into the runtime yet.
LANGFUSE_PUBLIC_KEY=
LANGFUSE_SECRET_KEY=
LANGFUSE_HOST=
LOG_LEVEL=INFO