XksA-me / ChatGPT-3.5-API

手把手教你使用Python调用 ChatGPT-3.5-API。Hands teach you to use Python to call ChatGPT-3.5-API.
MIT License
171 stars 38 forks source link

如果你有更多关于ChatGPT模型的应用想法,可以在这里和大家交流~ If you have more ideas about the application of ChatGPT model, you can communicate with us here~ #2

Open XksA-me opened 1 year ago

XksA-me commented 1 year ago

如果你有更多关于ChatGPT模型的应用想法,可以在这里和大家交流~

If you have more ideas about the application of ChatGPT model, you can communicate with us here~

houcuicui commented 1 year ago

中国的卡好像不能用于chat api的付款,能问一下有什么解决方法吗

fatfish516 commented 1 year ago

中国的卡好像不能用于chat api的付款,能问一下有什么解决方法吗

可以试试 depay, 然后找某宝给depay代充值,即可解决,缺点是代充时候手续费较贵,30元人民币这样

kckckkc commented 1 year ago

有比较好的代理推荐吗?现在用的这个偶尔会遇到【远程主机强迫关闭了一个现有的连接】的报错

AthanaD commented 1 year ago

openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))

XksA-me commented 1 year ago

有比较好的代理推荐吗?现在用的这个偶尔会遇到【远程主机强迫关闭了一个现有的连接】的报错

openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/chat/completions (Caused by ProxyError('Cannot connect to proxy.', OSError('Tunnel connection failed: 400 Bad Request'))

似乎在尝试与OpenAI的API通信时发生了错误。错误消息表示APIConnectionError是由ProxyError引起的,这表明网络连接或代理设置可能存在问题。 以下是一些故障排除步骤,您可以尝试: 1、检查您的网络连接:确保您的internet连接正常工作,并且没有遇到任何连接问题。 2、检查代理设置:如果您使用代理服务器连接到internet,请检查代理设置是否正确配置。您可能需要咨询网络管理员或IT部门,以确保代理设置正确。 3、检查OpenAI的状态页面:OpenAI的API可能正在经历中断或维护。检查OpenAI的状态页面,查看是否存在任何报告的问题。 稍后再试:如果所有其他操作都失败,请稍后再试。问题可能是暂时的,一段时间后再次尝试请求可能会解决问题。

XksA-me commented 1 year ago

有比较好的代理推荐吗?现在用的这个偶尔会遇到【远程主机强迫关闭了一个现有的连接】的报错

iGG谷歌学术助手,不过现在没法注册了,可以浏览器搜搜

Ancaeus-whisper commented 1 year ago

一个大家可能遇到的错误 1.openai.error.APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries exceeded with url: /v1/completions (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:992)'))) 一个比较隐蔽的原因:如果使用V2Ray作为代理工具,Python旧版本设置HttpProxy会出错,但是Python在3.9.13修复了这个问题,只要更新到最新版本就可以解决

MajorSnow-r commented 1 year ago

怎么调用chatgpt api啊 这个有没有教程文档啊

fatfish516 commented 1 year ago

有啊,官方文档有写

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2023年03月16日 11:58 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [XksA-me/ChatGPT-3.5-API] 如果你有更多关于ChatGPT模型的应用想法,可以在这里和大家交流~ If you have more ideas about the application of ChatGPT model, you can communicate with us here~ (Issue #2) |

怎么调用chatgpt api啊 这个有没有教程文档啊

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

XksA-me commented 1 year ago

怎么调用chatgpt api啊 这个有没有教程文档啊

本项目 blog 下第一篇就是介绍如何调用 ChatGPT API 的教程。

MajorSnow-r commented 1 year ago

好的 感谢

mycart commented 1 year ago

如果解决异步的问题? 需要将一步结果一起返回

physxz commented 1 year ago

请问如何像ChatGPT官网一样做到真人打字回复的效果

jscjq commented 1 year ago

有没有建站代码,运行Chatgpt的api然后会员收费