File size: 1,904 Bytes
4ef118d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
592cb1d
 
 
 
 
 
 
 
 
 
 
4ef118d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# Qurio Backend - Python (FastAPI + Agno)

# Server Configuration
HOST=localhost
PORT=3002

# CORS Configuration
FRONTEND_URL=http://localhost:3000
FRONTEND_URLS=http://localhost:3000

# SSE Configuration
SSE_FLUSH_MS=50
SSE_HEARTBEAT_MS=10000

# Supabase Configuration
SUPABASE_URL=your_supabase_url
SUPABASE_PASSWORD=your_supabase_password

# Active database backend (exactly one)
# Supported types: supabase, sqlite, postgres, pgsql, mysql, mariadb
DATABASE_PROVIDER=sqlite
DATABASE_LABEL=Local SQLite
# For sqlite
DATABASE_PATH=./data/qurio.db
# For postgres/mysql/mariadb
# DATABASE_URL=postgresql+psycopg2://user:pass@localhost:5432/qurio

# Legacy multi-provider config is still read for backward compatibility,
# but only the first entry is used.
DATABASE_PROVIDERS=[]

# Access key (optional fallback for all providers)
DB_PROVIDER_ACCESS_KEY=your_db_access_key

# Tavily API (for web search)
TAVILY_API_KEY=your_tavily_api_key

# Exa API (for Agno Exa search backend)
EXA_API_KEY=your_exa_api_key
EXA_TOOLS_TIMEOUT_SECONDS=45

# Debug Flags
DEBUG_STREAM=0
DEBUG_TOOLS=0
DEBUG_SOURCES=0

# Context Message Limit (default: 50)
CONTEXT_MESSAGE_LIMIT=50


# ================================================================
# Session Summary Configuration (Dual-Track Memory)
# ================================================================
# Required for generating chat summaries to prevent context loss
# Recommended: GLM-4-Flash (Fast & Cheap) or other lite models
MEMORY_LITE_PROVIDER=glm
MEMORY_LITE_MODEL=glm-4-flash
MEMORY_AGENT_API_KEY=your_glm_api_key
MEMORY_LITE_BASE_URL=https://open.bigmodel.cn/api/paas/v4

# ================================================================
# Model Configs (Add other provider keys as needed)
# ================================================================
OPENAI_API_KEY=sk-proj-...
GEMINI_API_KEY=...
DEEPSEEK_API_KEY=...
VOLCENGINE_API_KEY=...