补充openai的连接失败问题解决方案

This commit is contained in:
hzg0601 2023-07-21 09:29:43 +08:00
parent 50c872c0b8
commit 915f4f359a
1 changed files with 2 additions and 0 deletions

View File

@ -184,6 +184,8 @@ llm_model_dict = {
# 调用chatgpt时如果报出 urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='api.openai.com', port=443):
# Max retries exceeded with url: /v1/chat/completions
# 则需要将urllib3版本修改为1.25.11
# 如果依然报urllib3.exceptions.MaxRetryError: HTTPSConnectionPool则将https改为http
# 参考https://zhuanlan.zhihu.com/p/350015032
# 如果报出raise NewConnectionError(
# urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPSConnection object at 0x000001FE4BDB85E0>: