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

[ Request ] Vercel 部署下支持一些 环境变量 #15

Open
bbb3n opened this issue Feb 10, 2024 · 2 comments
Open

[ Request ] Vercel 部署下支持一些 环境变量 #15

bbb3n opened this issue Feb 10, 2024 · 2 comments

Comments

@bbb3n
Copy link

bbb3n commented Feb 10, 2024

比如

  • Base URL (可填可不填。甚至可以限制仅这一个 URL 可用,即不允许设置别的中转或者 OpenAI)
  • API Key (可填可不填)
  • Model List / Custom Model (可填可不填。设置可以选择用哪些模型来对话)
@14790897
Copy link
Owner

会考虑

@14790897
Copy link
Owner

14790897 commented Feb 11, 2024

我想起其实我最开始就是这么设置的,只不过后来我就忘了这回事,可以设置这两个变量,第一个是key,第二个是url,只要在设置界面(右上角齿轮)对应的位置留空就会使用预定的变量
NEXT_PUBLIC_OPENAI_API_KEY
NEXT_PUBLIC_AI_URL

NEXT_PUBLIC_OPENAI_API_KEY=sk-ffe19ebe9fa44d00884330ff1c18cf82

NEXT_PUBLIC_AI_URL=https://api.deepseek.com

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