更新提示

This commit is contained in:
qingxu fu 2023-04-14 13:10:40 +08:00
parent ea7fd53a97
commit 2e044d97c7
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,8 @@ if USE_PROXY:
else:
proxies = None
# 多线程函数插件中默认允许多少路线程同时访问OpenAI。Free trial users的限制是每分钟3次提高限制请查询
# 多线程函数插件中默认允许多少路线程同时访问OpenAI。
# Free trial users的限制是每分钟3次Pay-as-you-go users的限制是每分钟3500次。提高限制请查询
# https://platform.openai.com/docs/guides/rate-limits/overview
DEFAULT_WORKER_NUM = 3

View File

@ -228,7 +228,7 @@ def request_gpt_model_multi_threads_with_very_awesome_ui_and_high_efficiency(
retry_op -= 1
wait = random.randint(5, 20)
if "Rate limit reached" in tb_str:
wait = wait * 5
wait = wait * 3
fail_info = "OpenAI请求速率限制 "
else:
fail_info = ""