missuo / FreeGPT35

Utilize the unlimited free GPT-3.5-Turbo API service provided by the login-free ChatGPT Web.
GNU Affero General Public License v3.0
3.34k stars 1.03k forks source link

返回内容为空 #48

Closed Ash-one closed 6 months ago

Ash-one commented 6 months ago

使用测试用例

curl http://ip:3040/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer any_string_you_like" \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [
      {
        "role": "user",
        "content": "Hello!"
      }
    ],
    "stream": true
    }'

发现返回的内容为空

data: {"id":"chatcmpl-9jKHVqNoeYznlG9q6iHJE7SkNQMM","created":1713580134677,"object":"chat.completion.chunk","model":"gpt-3.5-turbo","choices":[{"delta":{"content":""},"index":0,"finish_reason":"stop"}]}

在其他调用该api的应用中,同样收到回复,但是内容为空,所以是OpenAI新做了限制吗?

Ash-one commented 6 months ago

更换了原版最新的docker镜像,同样的测试用例返回内容为Error message from OpenAI: Our systems have detected unusual activity from your device. Please try again later.

AndyLin2020 commented 6 months ago

早上起来发现一样问题

y1713375484 commented 6 months ago
image

我还以为是我的问题呢

jhkmichael commented 6 months ago

一样的问题 {"id":"chatcmpl-7xvxpvCn74lNnYfHdVyUW5wIkqdM","created":1713588420219,"model":"gpt-3.5-turbo","object":"chat.completion","choices":[{"finish_reason":"stop","index":0,"message":{"content":"","role":"assistant"}}],"usage":{"prompt_tokens":0,"completion_tokens":0,"total_tokens":0}}

zcracker commented 6 months ago

一样的问题

tiancool commented 6 months ago

无法使用,同样为空

LLilymay commented 6 months ago

这是因为openai增加了一个新的参数OpenAI-Sentinel-Proof-Token

zcracker commented 6 months ago

快修一下吧 完全宕机了 😁谢谢

SpaceGrey commented 6 months ago

蹲一下

toyo2333 commented 6 months ago

同样的问题。用不了了。为空

zsj1zsj commented 6 months ago

同样的问题

k0baya commented 6 months ago

https://github.com/k0baya/FreeGPT35-Glitch/blob/main/app.js

glitch分支已经修复,可以参考一下这个app.js。

missuo commented 6 months ago

Thanks @k0baya .

Try new version.

docker run -p 3040:3040 missuo/freegpt35