-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我的是新加坡的服务器,现在总是返回请求超时,请稍后再试 #15
Comments
这是结果 请求超时,请稍后再试!
|
看看 token 设置的是多少,如果超时,把 token 设置少一点试试呢
发自我的iPhone
…------------------ 原始邮件 ------------------
发件人: Joel Maisel ***@***.***>
发送时间: 2023年8月27日 19:45
收件人: ToryPan/ChatGPT_WeChat ***@***.***>
抄送: Subscribed ***@***.***>
主题: Re: [ToryPan/ChatGPT_WeChat] 我的是新加坡的服务器,现在总是返回请求超时,请稍后再试 (Issue #15)
这是结果 请求超时,请稍后再试!
【近期官方接口响应变慢,若持续出现请求超时,还请换个时间再来😅~】
162.62.80.57 - - [27/Aug/2023 19:42:42] "POST /wechat/?signature=8ba7b6399a7913544f0dd3ffee73afd92abc66f3&timestamp=1693136561&nonce=80269014&openid=oP1R8w53Va30bQ61Su_TxTrDB62k HTTP/1.1" 200 -
发送的消息: [{'role': 'system', 'content': '我是ChatGPT, 一个由OpenAI训练的大型语言模型, 我旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。'}, {'role': 'user', 'content': '看看'}] {'model': 'gpt-3.5-turbo-0301', 'messages': [{'role': 'system', 'content': '我是ChatGPT, 一个由OpenAI训练的大型语言模型, 我旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。'}, {'role': 'user', 'content': '看看'}], 'max_tokens': 80, 'temperature': 0.8, 'stream': True} beginStream <class 'generator'> 1.5668938159942627 记录时间: 1693136655 当前时间 1693136655 这是结果 请求超时,请稍后再试! 【近期官方接口响应变慢,若持续出现请求超时,还请换个时间再来😅~】 162.62.81.123 - - [27/Aug/2023 19:44:16] "POST /wechat/?signature=7462510d1422ef40bed68b4547773e2d37c7f450&timestamp=1693136655&nonce=210201467&openid=oP1R8w53Va30bQ61Su_TxTrDB62k HTTP/1.1" 200 -
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
token设置为123abc |
记录时间: 1693474792 当前时间 1693474792 |
知道原因啦,是因为openai的key被封了,可以淘宝买个key,供大家参考。 替换为您自己的 ChatGPT API 密钥api_key = "你的key" 准备请求头,包括 API 密钥headers = { 准备请求数据data = { ChatGPT API 的端点 URLapi_url = "https://api.openai.com/v1/chat/completions" 发送 POST 请求response = requests.post(api_url, headers=headers, json=data) 处理响应if response.status_code == 200: |
No description provided.
The text was updated successfully, but these errors were encountered: