Files
AutoDoneTeam/config.py
2026-01-15 19:30:01 +08:00

85 lines
2.5 KiB
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# config.example.py
"""全局配置模板 - 复制为 config.py 并填入真实信息"""
# OpenAI 端点
AUTH_BASE_URL = "https://auth.openai.com"
SENTINEL_BASE_URL = "https://sentinel.openai.com/sentinel"
# 临时邮箱配置
TEMPMAIL_CONFIG = {
'api_base_url': 'https://mail.copy.qzz.io', # 你的临时邮箱 API 地址
'username': 'mygoteam', # 你的临时邮箱系统用户名
'password': 'mygo123123', # 你的密码
# 方式2JWT Token备用
# 'admin_token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...',
# 域名选择(0=第1个域名, 1=第2个, 2=第3个)
'domain_index': 2, # 改成 0, 1, 或 2 来选择不同的域名后缀
}
# SDK 路径
SDK_JS_PATH = "assets/sdk.js"
# 浏览器指纹配置
FINGERPRINT_CONFIG = {
# 使用最新 Chrome 的 User-AgentWindows 10
'user_agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36',
'screen_width': 1920,
'screen_height': 1080,
'languages': ['en-US', 'en'],
'hardware_concurrency': 8,
'platform': 'Win32', # 改成 Windows匹配 UA
}
# HTTP 配置
HTTP_CONFIG = {
'impersonate': 'chrome131', # 使用最新的 Chrome 131 指纹
'timeout': 30,
}
# PoW 配置
POW_CONFIG = {
'max_attempts': 500000, # SDK 默认值
'timeout': 60, # 求解超时(秒)
}
# EU Billing 配置
EU_BILLING_CONFIG = {
# 计划配置
'plan_name': 'chatgptteamplan',
# 团队计划详情
'team_plan_data': {
'workspace_name': 'Sepa', # 工作空间名称
'price_interval': 'month', # 'month' 或 'year'
'seat_quantity': 5, # 座位数量(团队计划最少 5 个)
},
# 账单地址
'billing_details': {
'country': 'DE', # 国家代码DE, FR, IT 等)
'currency': 'EUR', # 货币EUR
},
# 促销活动
'promo_campaign': {
'promo_campaign_id': 'team-1-month-free',
'is_coupon_from_query_param': False,
},
# UI 模式
'checkout_ui_mode': 'redirect', # 'redirect' 或 'embedded'
# API 端点
'checkout_endpoint': 'https://chatgpt.com/backend-api/payments/checkout',
# OAI Client headers需定期更新以匹配当前 ChatGPT 版本)
'oai_client_version': 'prod-04eaaa443c69cfc8b46b5d52d2b61dbceba21862',
'oai_client_build_number': '4053703',
}
# 调试模式
DEBUG = True