Jazee6 / cloudflare-ai-web

支持Gemini Pro / Cloudflare Workers AI / ChatGPT的融合Web平台
https://ai.jaze.top
Apache License 2.0
1.89k stars 474 forks source link

请问openai的key使用one-api的是否可以,另外one-api的接口地址变量是openai_api_url吗? #7

Closed lizhe0326 closed 8 months ago

lizhe0326 commented 8 months ago

OPENAI_API_KEY添加了one-api的key。增加了一个OPENAI_API_URL填写了one-api的代理地址,但是chatgpt-3.5没有回应。 使用vercel搭建。是否只能使用官方key

Error: recieved non-200 status code, {"status":401,"statusText":"Unauthorized","body":"{\n \"error\": {\n \"message\": \"Incorrect API key provided: sk-TK6NM***48B5. You can find your API key at https://platform.openai.com/account/api-keys.\",\n \"type\": \"invalid_request_error\",\n \"param\": null,\n \"code\": \"invalid_api_key\"\n }\n}\n"}

Jazee6 commented 8 months ago

你好,只能使用官方key,走的是cloudflare ai gateway的代理

lizhe0326 commented 8 months ago

好的,感谢回复