-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy path.env.example
More file actions
40 lines (32 loc) · 1.16 KB
/
.env.example
File metadata and controls
40 lines (32 loc) · 1.16 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
# Z2API Configuration Example
# 服务器设置
HOST=0.0.0.0
PORT=8000
# API Key for external authentication (OpenAI SDK compatible)
# 外部认证密钥 (与OpenAI SDK兼容)
API_KEY=sk-z2api-key-2024
# Content filtering settings (only applies to non-streaming responses)
# 内容过滤设置 (仅适用于非流式响应)
# Whether to show <think> tags in response (true/false)
# 是否在响应中显示思考标签 (true/false)
SHOW_THINK_TAGS=false
# Response mode settings
# 响应模式设置
# Default streaming mode (true/false)
# 默认流式模式 (true/false)
DEFAULT_STREAM=false
# Z.AI Tokens (comma-separated list of JWT tokens from z.ai)
# Z.AI令牌 (从z.ai获取的JWT令牌,逗号分隔)
# Get these from https://chat.z.ai by inspecting network requests
# 从 https://chat.z.ai 的网络请求中获取这些令牌
Z_AI_COOKIES=your_jwt_token_here
# Rate limiting
# 速率限制
MAX_REQUESTS_PER_MINUTE=60
# Logging level (DEBUG, INFO, WARNING, ERROR)
# 日志级别 (DEBUG, INFO, WARNING, ERROR)
LOG_LEVEL=INFO
# Auto refresh settings (currently not implemented)
# 自动刷新设置 (当前未实现)
AUTO_REFRESH_TOKENS=false
REFRESH_CHECK_INTERVAL=3600