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
相关推荐
GEO索引未来1 小时前
AIIA可信GEO专题研讨会召开/AI全面加入618“大战”/谷歌重拳治理“AI投毒”
大数据·人工智能·gpt·chatgpt
shchojj2 小时前
Building Systems with ChatGPT AP - Overview
chatgpt
小七-七牛开发者2 小时前
周一上线|瑞幸把咖啡做进 CLI,Fable 5 短暂登场,Stonk Rider 骑上 K 线图
ai·chatgpt·大模型·agent·claude·codex·skill·claudecode·ai coding
冰^2 小时前
AI CC Switch 解决了什么?
人工智能·gpt·网络协议·chatgpt·github·aigc
Omics Pro2 小时前
中医临床决策5款大语言模型,谁主沉浮?
数据库·人工智能·机器学习·语言模型·自然语言处理·chatgpt
shchojj3 小时前
Building Systems with the ChatGPT API - Process Inputs: Chaining Prompts
chatgpt
小龙报3 小时前
用ChatGPT 5.5构建个人写作工作流:从大纲、初稿到风格润色的提示词链
人工智能·神经网络·低代码·自然语言处理·chatgpt·gpt-3·知识图谱
小七-七牛开发者19 小时前
Codex 实践系列 Vol.02:让 Codex 读懂开源项目 Typer
ai·chatgpt·openai·agent·工作流·codex·skill·ai coding
极客老王说Agent1 天前
自动化架构演进:2026年有比RPA更加稳定的技术吗?
人工智能·ai·chatgpt·架构·自动化·rpa
GPT-Image21 天前
AI把世界杯“提前踢开幕”了
人工智能·chatgpt·ai作画·aigc