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
相关推荐
聚梦小课堂2 小时前
OpenAI GPT o1技术报告阅读(5)-安全性对齐以及思维链等的综合评估与思考
gpt·chatgpt·openai·openai o1·o1模型
营赢盈英2 小时前
how can I train a OpenAI fine tuned model with more prompts
人工智能·深度学习·ai·openai api
AI大模型知识分享6 小时前
零基础入门AI:一键本地运行各种开源大语言模型 - Ollama
人工智能·gpt·语言模型·自然语言处理·chatgpt·开源·prompt
营赢盈英15 小时前
Why is OpenAI image generation Api returning 400 bad request in Unity?
ai·json·openai api·post·unitywebrequest·unitygameengine
AI王也17 小时前
ChatGPT搭上langchain的知识库RAG应用,效果超预期
人工智能·chatgpt·langchain·aigc
王豫翔20 小时前
OpenAl o1论文:Let’s Verify Step by Step 快速解读
人工智能·深度学习·机器学习·chatgpt
南 阳1 天前
阿里开源多模态大模型Ovis1.6,重塑出海电商AI格局
网络·人工智能·chatgpt
AI王也1 天前
ChatGPT 4o 使用指南 (9月更新)
人工智能·chatgpt·prompt·aigc
空指针异常Null_Point_Ex2 天前
大模型LLM之SpringAI:Web+AI(一)
人工智能·chatgpt·nlp
AIPaPerPass写论文2 天前
写论文去哪个网站?2024最佳五款AI毕业论文学术网站
人工智能·深度学习·chatgpt·powerpoint·ai写作