-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
111 lines (86 loc) · 3.76 KB
/
Copy path.env.example
File metadata and controls
111 lines (86 loc) · 3.76 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# NeuronLab Backend - Environment Configuration
# Copy this file to .env and fill in your values
# ============================================
# OPENAI CONFIGURATION
# ============================================
# AI Model to use for hints, solutions, and reasoning
AI_MODEL=gpt-4o-mini
# OpenAI API Key (required for AI features)
OPENAI_API_KEY=sk-your-key-here
# OpenAI Base URL (optional, for custom endpoints)
# Examples: Ollama (http://localhost:11434/v1), LM Studio (http://localhost:1234/v1), Azure OpenAI
# OPENAI_BASE_URL=http://localhost:11434/v1
# Reasoning Provider (optional, defaults to openai)
# Options: "openai" (uses REASONING_MODEL or AI_MODEL), "perplexity" (uses Perplexity AI)
# REASONING_PROVIDER=openai
# Reasoning Model (optional, only used when REASONING_PROVIDER=openai)
# Use a different model for reasoning than for hints/solutions
# If not set, falls back to AI_MODEL
# REASONING_MODEL=gpt-4o
# ============================================
# MANIM AI CODE GENERATION
# ============================================
# Provider used only for Manim code generation.
# Options: openai-compatible, manim-openai-compatible, 9router (legacy alias)
MANIM_CODE_PROVIDER=openai-compatible
# Canonical Manim OpenAI-compatible configuration.
# Resolution order: MANIM_OPENAI_COMPATIBLE_* -> MANIM_9ROUTER_* legacy aliases
# -> OpenCode 9router config -> OPENAI_* / AI_MODEL fallback.
MANIM_OPENAI_COMPATIBLE_MODEL=cx/gpt-5.5-xhigh
# MANIM_OPENAI_COMPATIBLE_BASE_URL=https://your-router.example/v1
# MANIM_OPENAI_COMPATIBLE_API_KEY=your-manim-provider-key
# Optional OpenCode config path. The loader can read a 9router provider entry
# and resolve api_key values like "$ENV_NAME" or "{env:ENV_NAME}".
# OPENCODE_CONFIG_PATH=/home/you/.config/opencode/opencode.json
# Legacy aliases kept for existing deployments. Prefer the canonical
# MANIM_OPENAI_COMPATIBLE_* names above for new setups.
# MANIM_9ROUTER_MODEL=cx/gpt-5.5-xhigh
# MANIM_9ROUTER_BASE_URL=https://your-router.example/v1
# MANIM_9ROUTER_API_KEY=your-manim-provider-key
# ============================================
# MANIM RENDERING
# ============================================
MANIM_SANDBOX_IMAGE=deepml-sandbox-manim:latest
MANIM_RENDER_QUALITY=l
MANIM_DEFAULT_BACKEND=cpu
MANIM_EGPU_ENABLED=false
MANIM_EGPU_DEVICE_PATHS=/dev/dri
MANIM_TIMEOUT=120
# MANIM_OUTPUT_DIR=./media/manim
MANIM_MAX_CONCURRENT_RENDERS=3
MANIM_WORKER_POLL_INTERVAL=1.0
MANIM_STALE_JOB_SECONDS=1800
# ============================================
# PERPLEXITY BROWSER COOKIES (OPTIONAL - WEB SEARCH)
# ============================================
# The current Perplexity integration uses browser-cookie auth, not an API key.
# Get these from browser DevTools after logging into Perplexity.
# PERPLEXITY_SESSION_TOKEN=your-session-token
# PERPLEXITY_CF_CLEARANCE=your-cf-clearance
# PERPLEXITY_VISITOR_ID=your-visitor-id
# PERPLEXITY_CF_BM=your-cf-bm-cookie
# PERPLEXITY_SESSION_ID=your-session-id
# ============================================
# JWT CONFIGURATION
# ============================================
JWT_SECRET=change-this-to-a-secure-random-string
JWT_EXPIRE_HOURS=24
# ============================================
# DATABASE
# ============================================
DATABASE_URL=sqlite:///./deepml.db
# ============================================
# DOCKER SANDBOX
# ============================================
SANDBOX_IMAGE=deepml-sandbox:latest
SANDBOX_TIMEOUT=30
SANDBOX_MEMORY=512m
# ============================================
# LOGGING CONFIGURATION
# ============================================
# Log level: DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
# Log format: pretty (colored console) or json (structured)
LOG_FORMAT=pretty
# Log file path (optional, enables file logging with rotation)
# LOG_FILE=logs/neuronlab.log