|
|
|
API_KEY = "sk-此处填API秘钥" |
|
API_URL = "https://api.openai.com/v1/chat/completions" |
|
|
|
|
|
USE_PROXY = False |
|
if USE_PROXY: |
|
|
|
proxies = { "http": "socks5h://localhost:11284", "https": "socks5h://localhost:11284", } |
|
print('网络代理状态:运行。') |
|
else: |
|
proxies = None |
|
print('网络代理状态:未配置。无代理状态下很可能无法访问。') |
|
|
|
|
|
TIMEOUT_SECONDS = 20 |
|
|
|
|
|
WEB_PORT = -1 |
|
|
|
|
|
MAX_RETRY = 2 |
|
|
|
|
|
LLM_MODEL = "gpt-3.5-turbo" |
|
|
|
|
|
CONCURRENT_COUNT = 100 |
|
|
|
|
|
AUTHENTICATION = [] |
|
|
|
|
|
if len(API_KEY) != 51: |
|
assert False, "正确的API_KEY密钥是51位,请在config文件中修改API密钥, 添加海外代理之后再运行。" + \ |
|
"(如果您刚更新过代码,请确保旧版config_private文件中没有遗留任何新增键值)" |
|
|