xqdoo00o / ChatGPT-to-API

Scalable unofficial ChatGPT API for production.
648 stars 129 forks source link

接口的所有回答为空 #28

Closed FightingSu closed 5 months ago

FightingSu commented 7 months ago

这两天 OpenAI 貌似修改了一些东西,所有的请求返回的信息都是空的。比如下面的例子:

user@machine ~ % curl http://127.0.0.1:8080/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H 'Authorization: Bearer Testing' \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [
      {
        "role": "user",
        "content": "???"
      }
    ]
  }'

其中返回的内容中,message 字段为:

"message":{
  "role":"assistant",
  "content":""
}

参考其他项目的 issue,发现可能的原因

https://github.com/chatpire/chatgpt-web-share/issues/360#issuecomment-1923267842

大佬能看看吗?

xqdoo00o commented 7 months ago

是这个原因,不过我的账号还没灰度到这个功能,所以没法适配

zeushera140 commented 7 months ago

3.5是好的,但是gpt-4不能回答了。

zeushera140 commented 6 months ago

作者更新本库了……不过好像还是不行,至少我的gpt-3.5-turbo还是返回空……

xqdoo00o commented 6 months ago

May fixed, just try the newest commit