x-dr/chatgptProxyAPI

提示需要https访问

onlyLTY opened this issue · 3 comments

{
  "error": {
    "message": "The OpenAI API can only be accessed over HTTPS. You should access https://api.openai.com rather than the current URL.",
    "type": "invalid_request_error"
  }
}

请求是

curl --location 'https://chatapi.xxx.xxx/v1/chat/completions' \
--header 'Authorization: Bearer sk-xxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
   "model": "gpt-3.5-turbo",
  "messages": [{"role": "user", "content": "Hello!"}]
 }'
x-dr commented

你是用Cloudflare Worker还是Cloudflare Pages部署的?有修改过吗?

你是用Cloudflare Worker还是Cloudflare Pages部署的?有修改过吗?

worker,没有修改过

x-dr commented

你是用Cloudflare Worker还是Cloudflare Pages部署的?有修改过吗?

worker,没有修改过

那就不清楚了了,你重新部署一下看看