-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.env.example
More file actions
32 lines (27 loc) · 1.42 KB
/
Copy path.env.example
File metadata and controls
32 lines (27 loc) · 1.42 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
# JustSearch 环境变量配置
# 复制此文件为 .env 并修改
# === 浏览器桥接(自建扩展)===
# WebSocket 与 HTTP 共用同一端口(默认 8000);不独立监听。
# 扩展 popup 里可修改连接地址;路径固定 /justsearch。
JUSTSEARCH_BRIDGE_WS_HOST=127.0.0.1
JUSTSEARCH_BRIDGE_WS_PATH=/justsearch
# 单次 RPC 请求超时(毫秒)
BRIDGE_REQUEST_TIMEOUT_MS=30000
# CORS 允许的源(逗号分隔,* 为全部;默认仅允许本机访问)
# HTTP 走宿主机 8001 端口(docker-compose.yml 映射 127.0.0.1:8001:8000)
CORS_ORIGINS=http://localhost:8001,http://127.0.0.1:8001,http://localhost,http://127.0.0.1
# 本机 Docker 部署建议保持 true;首页会为 localhost 自动注入访问令牌
JUSTSEARCH_AUTH_ENABLED=true
# 备用 API Key(建议通过 UI 配置)
# OPENAI_API_KEY=sk-xxx
# === LLM 上下文预算(可选)===
# 短操作(任务分析 / 相关性评估)超时秒数;默认 30。
JUSTSEARCH_LLM_SHORT_TIMEOUT=30
# 生成答案时带入来源内容的总字符预算(按相关性顺序分配);默认 160000。
# JUSTSEARCH_PROMPT_SOURCE_BUDGET=160000
# 单个来源在 prompt 中的字符上限;默认 20000。
# JUSTSEARCH_PROMPT_SOURCE_ITEM_CAP=20000
# 对话历史压缩:保留的最近轮数、总字符预算、单条助手回答字符上限。
# JUSTSEARCH_HISTORY_WINDOW=12
# JUSTSEARCH_HISTORY_CHAR_BUDGET=12000
# JUSTSEARCH_ASSISTANT_TURN_CHARS=900