这是indexloc提供的服务,不要输入任何密码
Skip to content

兼容系统环境变量OPENAI_API_KEY格式 #132

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

Closed

Conversation

weisong82
Copy link

大部分框架和服务,对OPENAI_API_KEY环境变量的定义都是直接str格式的key;
但是跟你这个刚好冲突了,启动就报错,都没机会进webui配置。

做了下兼容

@KenyonY
Copy link
Owner

KenyonY commented May 24, 2024

感谢PR,
OPENAI_API_KEY确实很容易与其他框架冲突,尤其是openai默认读取的环境变量名;因此后续直接更改本项目中的该变量名也许更合理些

@KenyonY KenyonY closed this Jun 8, 2024
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

Successfully merging this pull request may close these issues.

2 participants