chatgpt openai API报错openai.error.APIConnectionError

openai.error.APIConnectionError: Error communicating with OpenAI:

报错信息

raise error.APIConnectionError(

openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1131)')))

无用方案

我们对Markdown编辑器进行了一些功能拓展与语法支持,除了标准的Markdown编辑器功能,我们增加了如下几点新功能,帮助你用它写博客:

  1. 改API key ,没用;
  2. 换科学上网节点没用。

问题

urllib3版本太高

查看urllib3版本方法

bash 复制代码
conda list

需要下载1.25.11版本

可行方案

法1

在终端或命令提示符中卸载urllib3

bash 复制代码
pip uninstall urllib3

通过使用指定版本号的pip install命令来安装所需的版本:

bash 复制代码
pip install urllib3==1.25.11

法2:自己找包安装

地址:urllib3==1.25.11

下载好后找到这个文件,然后在cmd中运行命令:

bash 复制代码
pip install urllib3-1.25.11-py2.py3-none-any.whl
相关推荐
小马9265 小时前
2026年9月30日热点速览:AI智能体大战升级、房贷贴息新政落地、硬科技多点突破
人工智能·科技·chatgpt
YH55269847 小时前
ChatGPT Pro 500 是什么?额度、Ultrafast 模式与适合人群整理
gpt·chatgpt
jimy112 小时前
curl 发送第三方公益中转站请求
chatgpt
sinat_2869451919 小时前
构建自己的agent
人工智能·chatgpt
sinat_2869451919 小时前
大模型推理:部署方式与性能优化思路
人工智能·算法·缓存·chatgpt·性能优化
Rosanci2 天前
Codex 下载与本地部署实战:从安装到运行全流程指南
开发语言·前端·算法·chatgpt·codex
sinat_286945192 天前
LLM Serving 中的四种缓存
人工智能·缓存·chatgpt
Hello_wshuo2 天前
FreeCAD配置MCP使用chatgpt
chatgpt
盘古开天16663 天前
windows鱼塘可交互鱼群动态桌面资源
人工智能·chatgpt·开源
枫叶丹43 天前
从一次推理请求出发:模型、显存、网络与服务系统如何共同决定性能
网络·人工智能·chatgpt·开源·agent·codex