File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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" # 忽略额外字段,防止环境变量中的未知字段导致验证错误
You can’t perform that action at this time.
0 commit comments