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

部署到vercel怎么添加自己的key啊 #15

Closed
qxbug opened this issue Mar 7, 2023 · 8 comments
Closed

部署到vercel怎么添加自己的key啊 #15

qxbug opened this issue Mar 7, 2023 · 8 comments

Comments

@qxbug
Copy link

qxbug commented Mar 7, 2023

试了下fork回去 把key编辑进去再部署到vercel openai马上就来邮件说key暴露了 把key自动换掉了

@Okarin1
Copy link

Okarin1 commented Mar 7, 2023

fork成私人项目

@eryajf
Copy link

eryajf commented Mar 7, 2023

fork之后,拷贝 .env ,然后注意不要往里边填任何内容,然后直接部署,部署之后,就需要在页面填写key之后才能使用。

@cokice
Copy link

cokice commented Mar 7, 2023

在部署的时候有个environment选项,里面name填写OPENAI_API_KEY,value填写你的key

@ourongxing
Copy link
Owner

确实有这个问题,我是本地运行 vercel deploy 命令的,等会我加一个 environment 变量就可以在 vercel 添加了。

@ourongxing ourongxing pinned this issue Mar 7, 2023
@ourongxing ourongxing reopened this Mar 7, 2023
@ourongxing
Copy link
Owner

现在支持了,详情看 README

@tiwentichat
Copy link

请教:后台添加了 key:OPENAI_API_KEY value: sk-xxxxx,但是前台页面还是必须在设置里加一下这个key才能使用啊
那后台添加好像就没有意义了。

@tiwentichat
Copy link

(大橘好辛苦,请多给它一个罐头

@tiwentichat
Copy link

请教:后台添加了 key:OPENAI_API_KEY value: sk-xxxxx,但是前台页面还是必须在设置里加一下这个key才能使用啊 那后台添加好像就没有意义了。

我又回来了。。缓存问题。等、等、等、等就好了

@ourongxing ourongxing unpinned this issue Mar 10, 2023
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

6 participants