-
Notifications
You must be signed in to change notification settings - Fork 56.8k
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
[错误].env文件已经配置OPENAI_API_KEY字段 #4716
Comments
Please follow the issue template to update title and description of your issue. |
Title: [Error].env file has been configured with OPENAI_API_KEY field |
你需要的是在服务端配置环境变量 |
What you need is to configure the environment variable |
本地服务器的部署方式是? |
How is the local server deployed? |
是不是在部署和启动服务的过程中在其他的地方设置了空的OPENAI_API_KEY变量,导致覆盖了 .env的设置? |
Is the empty OPENAI_API_KEY variable set elsewhere during the deployment and startup of the service, causing the .env setting to be overwritten? |
Bug Description
.env文件已经配置OPENAI_API_KEY字段,通过浏览器访问后输入密码后进行聊天还是提示“访问密码不正确或为空,请前往登录页输入正确的访问密码,在设置页填入你自己的OpenAI API Key”,输入“OPENAI_API_KEY”后可以正常聊天,咨询一下不能调用.env文件配置的OPENAI_API_KEY我是本地服务器部署。
Steps to Reproduce
!上传image.png...
Expected Behavior
在web界面不输入OPENAI_API_KEY情况调用.env配置的OPENAI_API_KEY。
Screenshots
No response
Deployment Method
Desktop OS
No response
Desktop Browser
No response
Desktop Browser Version
No response
Smartphone Device
No response
Smartphone OS
No response
Smartphone Browser
No response
Smartphone Browser Version
No response
Additional Logs
No response
The text was updated successfully, but these errors were encountered: