forked from whotto/Video_note_generator
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.env.example
41 lines (33 loc) · 1.44 KB
/
.env.example
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
# OpenRouter API 配置(必需)
OPENROUTER_API_KEY=your-api-key-here
OPENROUTER_API_URL=https://openrouter.ai/api/v1
OPENROUTER_APP_NAME=video_note_generator
OPENROUTER_HTTP_REFERER=https://github.com
OPENROUTER_MODLE=openai/o1-mini-2024-09-12
# Unsplash API 配置(必需)
UNSPLASH_ACCESS_KEY=your-unsplash-access-key-here
UNSPLASH_SECRET_KEY=your-unsplash-secret-key-here
# 输出目录配置
OUTPUT_DIR=generated_notes
# Whisper 配置
WHISPER_MODEL=medium # 可选: tiny, base, small, medium, large-v2
WHISPER_LANGUAGE=zh # 默认语言,可选:zh, en, ja 等
# FFmpeg 配置
# Windows 用户需要设置 FFmpeg 路径,Mac/Linux 用户通常不需要
# FFMPEG_PATH=C:\\path\\to\\ffmpeg.exe
# 代理配置(可选,如果你在中国大陆使用,建议配置)
# HTTP_PROXY=http://127.0.0.1:7890
# HTTPS_PROXY=http://127.0.0.1:7890
# 内容生成配置
MAX_TOKENS=2000 # 生成小红书内容的最大长度
CONTENT_CHUNK_SIZE=2000 # 长文本分块大小(字符数)
TEMPERATURE=0.7 # AI 创造性程度 (0.0-1.0)
TOP_P=0.9 # 采样阈值 (0.0-1.0)
# 笔记样式配置
USE_EMOJI=true # 是否在内容中使用表情符号
TAG_COUNT=5 # 生成的标签数量
MIN_PARAGRAPHS=3 # 最少段落数
MAX_PARAGRAPHS=6 # 最多段落数
# 调试配置
DEBUG=false # 是否启用调试模式
LOG_LEVEL=info # 日志级别:debug, info, warning, error