Skip to content

Commit b70c293

Browse files
committed
Update config.py
1 parent 766061a commit b70c293

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

app/core/config.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -79,19 +79,6 @@ def provider_model_mapping(self) -> Dict[str, str]:
7979
ADMIN_PASSWORD: str = os.getenv("ADMIN_PASSWORD", "admin123") # 管理后台密码
8080
SESSION_SECRET_KEY: str = os.getenv("SESSION_SECRET_KEY", "your-secret-key-change-in-production") # Session 密钥
8181

82-
# Browser Headers
83-
CLIENT_HEADERS: Dict[str, str] = {
84-
"Content-Type": "application/json",
85-
"Accept": "application/json, text/event-stream",
86-
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/139.0.0.0 Safari/537.36 Edg/139.0.0.0",
87-
"Accept-Language": "zh-CN",
88-
"sec-ch-ua": '"Not;A=Brand";v="99", "Microsoft Edge";v="139", "Chromium";v="139"',
89-
"sec-ch-ua-mobile": "?0",
90-
"sec-ch-ua-platform": '"Windows"',
91-
"X-FE-Version": "prod-fe-1.0.103",
92-
"Origin": "https://chat.z.ai",
93-
}
94-
9582
class Config:
9683
env_file = ".env"
9784
extra = "ignore" # 忽略额外字段,防止环境变量中的未知字段导致验证错误

0 commit comments

Comments
 (0)