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

无法调用.env文件的OPENAI_API_KEY #4714

Closed
ws910616 opened this issue May 16, 2024 · 2 comments
Closed

无法调用.env文件的OPENAI_API_KEY #4714

ws910616 opened this issue May 16, 2024 · 2 comments

Comments

@ws910616
Copy link

.env文件已经配置OPENAI_API_KEY字段,通过浏览器访问后输入密码后进行聊天还是提示“访问密码不正确或为空,请前往登录页输入正确的访问密码,或者在设置页填入你自己的 OpenAI API Key”,输入“OPENAI_API_KEY”后可以正常聊天,请问为什么不能调用.env文件配置的OPENAI_API_KEY我是本地服务器部署。

@nextchat-manager
Copy link

Please follow the issue template to update title and description of your issue.

@Issues-translate-bot
Copy link

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


Title: Unable to call OPENAI_API_KEY of .env file

The .env file has been configured with the OPENAI_API_KEY field. After entering the password after accessing through the browser to chat, it still prompts "The access password is incorrect or empty. Please go to the login page to enter the correct access password, or fill in your own OpenAI API on the settings page. Key", you can chat normally after inputting "OPENAI_API_KEY". Why can't I call the OPENAI_API_KEY configured in the .env file? I am deploying it on a local server.

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

3 participants