免登陆chatgpt3.5搞好了

9次阅读

共计 3754 个字符,预计需要花费 10 分钟才能阅读完成。

接口页长这样,挑 ip,不然没法免登陆使用 gpt3.5

输入这串代码
curl http://localhost: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”: “ 你好啊!”
      }
    ],
    “stream”: true
    }’ 复制代码
返回这样才表示接口没问题

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 你 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 好 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:”!”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 有 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 什 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 么 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 可以 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 帮 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 助 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 你 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 的 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:” 吗 ”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:”?”},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:””},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:””},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:””},”index”:0,”finish_reason”:null}]}

data: {“id”:”chatcmpl-yjC2I9inE8xCdVWpx5dOF9g7HdIM”,”created”:1712226236468,”object”:”chat.completion.chunk”,”model”:”gpt-3.5-turbo”,”choices”:[{“delta”:{“content”:””},”index”:0,”finish_reason”:”stop”}]}
复制代码
外国人分享精神真的厉害,是我搞个 99 元无限制使用 gpt3.5,肯定每天入账几十万

正文完