Files
Video-Tree-TRM5/.env.example
T
iomgaa 847def4a03 feat(repair): asyncio.Semaphore 并发 + 断点续跑 + CLI 参数
--concurrency 默认 16,--reaggregate-all 强制全量重聚合。
Semaphore 限视频并发数,视频内四步串行。progress 文件
asyncio.Lock + os.replace 原子写入。熔断阈值 max(.env, concurrency*2)。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-07-09 00:23:40 -04:00

50 lines
1.5 KiB
Bash

# 国内 LLM 端点绕过本地代理
no_proxy=dashscope.aliyuncs.com,api.deepseek.com
NO_PROXY=dashscope.aliyuncs.com,api.deepseek.com
# ── 搜索 Agent LLM ──
SEARCH_LLM_MODEL=deepseek-v4-pro
SEARCH_LLM_BASE_URL=https://newapi.iomgaa.online/v1
SEARCH_LLM_API_KEY=sk-your-api-key-here
# ── 评估 Judge LLM ──
JUDGE_LLM_MODEL=deepseek-v4-pro
JUDGE_LLM_BASE_URL=https://newapi.iomgaa.online/v1
JUDGE_LLM_API_KEY=sk-your-api-key-here
# ── 视觉模型(Qwen VL)──
VL_LLM_MODEL=qwen3.6-plus
VL_LLM_BASE_URL=https://newapi.iomgaa.online/v1
VL_LLM_API_KEY=sk-your-api-key-here
# ── 进化 LLM(Prompt 改写)──
EVOLVE_LLM_MODEL=deepseek-v4-pro
EVOLVE_LLM_BASE_URL=https://newapi.iomgaa.online/v1
EVOLVE_LLM_API_KEY=sk-your-api-key-here
# ── ASR 字幕生成(Groq Whisper)──
ASR_MODEL=whisper-large-v3
ASR_BASE_URL=https://api.groq.com/openai/v1
ASR_API_KEY=gsk_your-groq-api-key-here
# ── MonkeyOCR ──
MONKEY_OCR_URLS=http://10.77.0.20:7866,http://10.77.0.20:7867
# ── Embedding(仅远程模式的敏感凭证;backend/model_name 由科研 YAML 管理)──
EMBED_API_KEY=
EMBED_API_URL=
# ── Redis(响应缓存)──
REDIS_URL=redis://localhost:6379/0
# ── LLM 韧性参数 ──
LLM_TIMEOUT=120
LLM_MAX_RETRIES=3
LLM_RETRY_BASE_DELAY=2.0
LLM_CIRCUIT_BREAKER_THRESHOLD=5 # 实际阈值 = max(此值, concurrency*2)
LLM_CIRCUIT_BREAKER_COOLDOWN=60
LLM_TTFT_TIMEOUT=30
LLM_INTER_TOKEN_TIMEOUT=15
LLM_RETRY_MAX_DELAY=30.0
REDIS_CACHE_TTL=86400