Spaces:
Running
Running
JohnSmith9982
commited on
Commit
•
945f2c1
1
Parent(s):
b22cd42
Update modules/config.py
Browse files- modules/config.py +0 -2
modules/config.py
CHANGED
@@ -87,8 +87,6 @@ if os.environ.get("dockerrun") == "yes":
|
|
87 |
# 处理 api-key 以及 允许的用户列表
|
88 |
my_api_key = config.get("openai_api_key", "")
|
89 |
my_api_key = os.environ.get("OPENAI_API_KEY", my_api_key)
|
90 |
-
os.environ["OPENAI_API_KEY"] = my_api_key
|
91 |
-
os.environ["OPENAI_EMBEDDING_API_KEY"] = my_api_key
|
92 |
|
93 |
if config.get("legacy_api_usage", False):
|
94 |
sensitive_id = my_api_key
|
|
|
87 |
# 处理 api-key 以及 允许的用户列表
|
88 |
my_api_key = config.get("openai_api_key", "")
|
89 |
my_api_key = os.environ.get("OPENAI_API_KEY", my_api_key)
|
|
|
|
|
90 |
|
91 |
if config.get("legacy_api_usage", False):
|
92 |
sensitive_id = my_api_key
|