-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy path.env.example
More file actions
126 lines (103 loc) · 3.95 KB
/
.env.example
File metadata and controls
126 lines (103 loc) · 3.95 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# Open Notebook Configuration Example
# Copy this file to .env and fill in your values
#
# NOTE: The application automatically loads .env file on startup if it exists.
# You can also use .env.local for local overrides (not tracked in git).
# LLM Provider - Choose one
# ============================
# OpenAI (default)
OPENAI_API_KEY=sk-your-openai-api-key-here
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4o-mini
EMBEDDING_MODEL=text-embedding-3-small
# OR Ollama (local, free)
OLLAMA_BASE_URL=http://localhost:11434
OLLAMA_MODEL=llama3.2
# OR Google Gemini (for Infographics and Nano Banana)
GOOGLE_API_KEY=your-google-api-key-here
# Server Configuration
# ============================
SERVER_HOST=0.0.0.0
SERVER_PORT=8080
# Vector Store Configuration
# ============================
# Options: sqlite, memory, supabase, postgres, redis
VECTOR_STORE_TYPE=sqlite
SQLITE_PATH=./data/vector.db
# Store Configuration
# ============================
STORE_TYPE=sqlite
STORE_PATH=./data/checkpoints.db
# Agent Configuration
# ============================
MAX_SOURCES=5
CHUNK_SIZE=1000
CHUNK_OVERLAP=200
# Document Conversion Configuration
# ============================
# Enable Microsoft markitdown for converting PDF, DOCX, PPTX, XLSX to Markdown
# Requires markitdown CLI tool to be installed (pip install markitdown)
# Set to false to use original simple text extraction (may not work well for binary formats)
ENABLE_MARKITDOWN=true
# Audio Transcription Configuration
# ============================
# Enable vosk-transcriber for converting audio files to text
# Requires vosk-transcriber CLI tool to be installed
# Installation: https://github.com/alphacep/vosk-transcriber
# Supported formats: mp3, wav, m4a, aac, flac, ogg, wma, opus, mp4, avi, mkv, mov, webm
ENABLE_VOSK_TRANSCRIBER=true
# Path to vosk model directory (download from https://alphacephei.com/vosk/models)
#
# English models:
# - Small: vosk-model-small-en-us-0.15 (fast, good accuracy)
# - Full: vosk-model-en-us-0.22 (slower, better accuracy)
# Path example: /root/.cache/vosk/vosk-model-small-en-us-0.15
#
# Chinese models:
# - Small: vosk-model-small-cn-0.22 (fast, good for Mandarin)
# Path example: /root/.cache/vosk/vosk-model-small-cn-0.22
#
# Download and extract:
# wget https://alphacephei.com/vosk/models/vosk-model-small-cn-0.22.zip
# unzip vosk-model-small-cn-0.22.zip -d /root/.cache/vosk/
VOSK_MODEL_PATH=/root/.cache/vosk/vosk-model-small-cn-0.22
# 允许删除(默认为 true)
ALLOW_DELETE=true
# 允许为一个笔记本创建多个相同类型的笔记(默认为 true)
ALLOW_MULTIPLE_NOTES_OF_SAME_TYPE=true
# Auth Configuration
# ============================
JWT_SECRET=your-secret-key-change-me-in-production
# GitHub OAuth (optional - for GitHub login)
# ==========================================
GITHUB_CLIENT_ID=your-github-client-id
GITHUB_CLIENT_SECRET=your-github-client-secret
GITHUB_REDIRECT_URL=http://localhost:8080/auth/github/callback
# Google OAuth (optional - for Google login)
# ==========================================
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
GOOGLE_REDIRECT_URL=http://localhost:8080/auth/google/callback
# Image Generation Configuration
# ============================
# Options: gemini (default), glm, zimage
IMAGE_PROVIDER=gemini
# GLM (智谱AI) image generation
GLM_API_KEY=your-glm-api-key
GLM_IMAGE_MODEL=glm-image
# Gemini image generation
GEMINI_IMAGE_MODEL=gemini-3.1-flash-image-preview
# Z-Image image generation
ZIMAGE_API_KEY=your-zimage-api-key
ZIMAGE_MODEL=z-image-turbo
# Agent Configuration (Extended)
# ============================
MAX_CONTEXT_LENGTH=128000
# Test Mode (for development/testing - WARNING: Do not enable in production!)
# =============================================================
ENABLE_TEST_MODE=false
# Test account configuration (used when ENABLE_TEST_MODE=true)
TEST_USER_ID=test-user-123
TEST_USER_NAME=测试用户
TEST_USER_EMAIL=test@example.com
TEST_USER_AVATAR=