ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
76.71k stars 59.21k forks source link

[Bug] Environment Variables does not take effect after vercel deployment #3694

Open SkywalkerJi opened 10 months ago

SkywalkerJi commented 10 months ago

To Reproduce Just refer to the deployment process in the readme

Screenshots image

image

Bugs

No api key,no password code.Need to re-enter on the web page.

shabby2333 commented 10 months ago

rebuild after setting enviornment variables.

Issues-translate-bot commented 10 months ago

Bot detected the issue body's language is not English, translate it automatically.


rebuild after setting environment variables.

bios99 commented 10 months ago

我也遇到这个问题,

然后就找不到key,各种报错

问题:

Issues-translate-bot commented 10 months ago

Bot detected the issue body's language is not English, translate it automatically.


I also encountered this problem,

  • OpenAI API I put two keys to patrol
  • A Gemini key has been added to the environment variables
  • Added environment variable for Base_URL After Redeployment

Then the key cannot be found and various errors are reported.

question:

SkywalkerJi commented 10 months ago

rebuild after setting enviornment variables.

No change, still the same

Issues-translate-bot commented 10 months ago

Bot detected the issue body's language is not English, translate it automatically.


rebuild after setting environment variables. No change, still the same

DreamofInfinity1 commented 1 month ago

@bios99 请问您如何解决的?我也遇到相同问题,同时填入openai和gemini的key和代理地址,貌似默认使用openai的key,此时如何切换或使用gemini的key

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


@bios99 How did you solve it? I also encountered the same problem. I filled in the keys and proxy addresses of openai and gemini at the same time. It seems that the openai key is used by default. How to switch or use the gemini key at this time?