关于 oaipro 使用求助

在使用 OAipro 内置的 LobeChat 时,
API 代理地址填了 https://api.oaifree.com,api key 也填了令牌,出现如下报错:

{
“error”: {
“status”: 401,
“headers”: {
“connection”: “keep-alive”,
“content-length”: “91”,
“content-type”: “application/json; charset=utf-8”,
“date”: “Sun, 23 Jun 2024 15:30:29 GMT”,
“expect-ct”: “max-age=86400, enforce”,
“referrer-policy”: “same-origin”,
“strict-transport-security”: “max-age=15552000; includeSubDomains; preload”,
“x-content-type-options”: “nosniff”,
“x-frame-options”: “SAMEORIGIN”,
“x-server”: “oaifree/0.0.2”,
“x-xss-protection”: “1; mode=block”
},
“error”: {
“message”: “invalid access token”,
“type”: “unauthorized”,
“param”: null,
“code”: null
},
“code”: null,
“param”: null,
“type”: “unauthorized”
},
“endpoint”: “https://api.oa****ee.com/”,
“provider”: “openai”
}

1 个赞

地址你不应该填写oaipro吗

1 个赞

端点地址:https://api.oaipro.com :joy:,oaipro和oaifree是两套体系

1 个赞

代理地址写

https://api.oaipro.com/v1
1 个赞

我也有时候会搞混这两个

oaifree 是给 chat2api 的,要填 access token
oaipro 才是 api key

1 个赞