本地部署失败,疑似代理配置问题:☹️发生了错误:获 取对话时发生错误,请查看后台日志 #770
Unanswered
MollyDesign
asked this question in
Q&A
Replies: 4 comments 1 reply
-
页面可以正常打开,经过几次尝试后错误情况如下: |
Beta Was this translation helpful? Give feedback.
0 replies
-
代理服务器的问题,最好部署在国外vps上。如果要使用代理,确保代理所在国家在openai的白名单内。比如香港是不能访问的 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
PS D:\专业课\毕业设计\AI\ChuanhuChatGPT-main> python ChuanhuChatbot.py
2023-05-22 12:05:23,612 [INFO] [utils.py:148] Note: NumExpr detected 12 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2023-05-22 12:05:23,612 [INFO] [utils.py:160] NumExpr defaulting to 8 threads.
2023-05-22 12:05:24,890 [INFO] [models.py:562] 正在加载OpenAI模型: gpt-3.5-turbo
2023-05-22 12:05:24,890 [INFO] [models.py:607] 模型设置为了: gpt-3.5-turbo
2023-05-22 12:05:25,686 [WARNING] [utils.py:394] 无法获取IP地址信息。
{'error': True, 'reason': '连接ipapi失败'}
2023-05-22 12:05:25,824 [INFO] [ChuanhuChatbot.py:459]
川虎的温馨提示:访问 http://localhost:7860 查看界面
Reloading javascript...
Running on local URL: http://127.0.0.1:7860
To create a public link, set☹️ 发生了错误:获 取对话时发生错误,请查看后台日志
share=True
inlaunch()
.2023-05-22 12:05:27,016 [INFO] [models.py:562] 正在加载OpenAI模型: gpt-3.5-turbo
2023-05-22 12:05:27,016 [INFO] [models.py:607] 模型设置为了: gpt-3.5-turbo
2023-05-22 12:05:27,113 [INFO] [models.py:562] 正在加载OpenAI模型: gpt-3.5-turbo
2023-05-22 12:05:27,113 [INFO] [models.py:607] 模型设置为了: gpt-3.5-turbo
2023-05-22 12:05:27,121 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2023-05-22 12:05:27,125 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2023-05-22 12:05:27,181 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2023-05-22 12:05:27,186 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2023-05-22 12:06:01,090 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2023-05-22 12:06:01,098 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2023-05-22 12:06:01,132 [INFO] [base_model.py:286] 输入为:连接成功了吗
2023-05-22 12:06:01,134 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2023-05-22 12:06:01,138 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2023-05-22 12:06:01,805 [ERROR] [models.py:91] 获取API使用情况失败:HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /dashboard/billing/usage?start_date=2023-05-01&end_date=2023-05-31 (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request')))
2023-05-22 12:06:01,807 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2023-05-22 12:06:01,810 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2023-05-22 12:06:02,222 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2023-05-22 12:06:02,226 [INFO] [base_model.py:350] 回答为:
2023-05-22 12:06:02,229 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2023-05-22 12:06:02,233 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
2023-05-22 12:06:02,307 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/api/predict "HTTP/1.1 200 OK"
2023-05-22 12:06:02,310 [INFO] [_client.py:1729] HTTP Request: POST http://127.0.0.1:7860/reset "HTTP/1.1 200 OK"
请问该如何解决,使用的vpn不是clash或者surge,下载了clash for windows按照帖子操作了还是不行,不知道如何操作。将vpn的url已经写入config也没用。修改了服务器名和端口名也没用。小白求教。
Beta Was this translation helpful? Give feedback.
All reactions