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
相关推荐
吨吨ai18 小时前
2026年7月更新:ChatGPT、Codex、Pro、Plus 背后的 AI Determinism 问题(GPT-5.6 工程化技术分享)
人工智能·gpt·chatgpt
Pokerhead18 小时前
如何评价 OpenAI 的超级对话模型 ChatGPT ?
人工智能·chatgpt·大模型·openai·ai编程
孤狼GPT20 小时前
从聊天工具到开发系统:ChatGPT、Codex、Plus与Pro正在重新分工
chatgpt·ai编程·codex·chatgpt plus·chatgpt pro
吨吨ai1 天前
2026年7月更新:ChatGPT、Codex、Pro、Plus 背后的 AI Observability(GPT-5.6 工程化技术分享)
人工智能·gpt·chatgpt
小码哥哥1 天前
企业AI知识库不是套个ChatGPT
人工智能·chatgpt
AI大模型-小雄2 天前
Codex 长任务总要重新开始?买 Credits 还是升级 ChatGPT Pro
人工智能·chatgpt·程序员·ai编程·codex·ai办公·chatgpt pro
AH_HH2 天前
Codex 几个入口,我全用了一遍,给你打个分
chatgpt·codex
AI大模型-小雄3 天前
Codex 测试总跑不完怎么办?补 Credits 还是升级 Pro
人工智能·chatgpt·提示词·codex·ai办公·chatgpt pro·credits
Harry技术3 天前
我跑通第一个 Codex 任务的全过程,以及踩的那些坑
chatgpt
Harry技术3 天前
Codex 几个入口,我全用了一遍,给你打个分
chatgpt