Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

求助:关于切换api接口到幻方和kimi失败 #45

Open
tiwentichat opened this issue May 15, 2024 · 1 comment
Open

求助:关于切换api接口到幻方和kimi失败 #45

tiwentichat opened this issue May 15, 2024 · 1 comment

Comments

@tiwentichat
Copy link

大佬大佬,又不要脸的来求助了 - -!

我把src/apis/openai.ts 里面的api, proxy key还有模型都换成幻方或者kimi的发现总是401 unauthorized
key没问题,是最新的

查看代码+问AI都没有搞定,求指点

@circle-hotaru
Copy link
Owner

看下这行代码

Authorization: !!apiKey ? `Bearer ${process.env.OPENAI_API_KEY}` : null,

是不是它们不是用 Bearer ${process.env.OPENAI_API_KEY} 的形式?这两个 API 我没有接过,不太清楚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants