Closed eJayYoung closed 1 year ago
直接浏览器访问 https://xxx.tencentcs.com//v1/chat/completions 看看提示什么,如果是下面这样,说明你代理搭建成功了。
{
"error": {
"message": "You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": null
}
}
或者修改一下 app.js 为最新的版本,可能是跨域问题
解决了,我没直接用你的zip包上传的,只复制了app.js里的内容,所以部署完没有proxy的包,把package.json的内容也更新上,重新部署就有了,多谢po主
跟着配置完后,请求代理地址的接口,报405,是还有什么没配置吗?