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
相关推荐
陈大鱼头19 小时前
GPT-6 跟它的重置卡来了!
gpt·chatgpt·openai
ServBay19 小时前
ChatGPT、Grok 和 Claude 同时宕机了,你的在跑项目还好吗?
chatgpt·claude·grok
吨吨ai1 天前
ChatGPT Plus / Pro + Codex 全栈自动化开发实战:2026年9月2日 从智能体工作流到企业级代码交付的完整技术指南
人工智能·chatgpt·自动化
AIGC大时代2 天前
知网 AIGC 检测在罚什么:均匀句长、低指代、零口癖,并不等于「用过 ChatGPT」
人工智能·chatgpt·nlp·aigc·论文·知网·学术规范
ClouGence2 天前
AI 定时任务火了?写日报、看新闻、做计划、盯价格,它都能自动跑
chatgpt·aigc·claude
嘿嘿-662 天前
VS Code 怎么配置 ChatGPT?用一键脚本把 Codex CLI 配好
chatgpt
顿哥GPT2 天前
ChatGPT Plus / Pro + Codex 实战指南(2026年9月2日)
人工智能·chatgpt
dunge20262 天前
ChatGPT Plus / Pro + Codex 深度实战指南:2026年9月2日 从智能编程到自动化工作流的完整技术手册
运维·chatgpt·自动化
Easy_API3 天前
8月31日,三份“模型合同”同时到期
人工智能·chatgpt