Spaces:
Runtime error
Runtime error
Commit ·
5e2961c
1
Parent(s): 9e6db3a
Update modules/config.py
Browse files- modules/config.py +1 -1
modules/config.py
CHANGED
|
@@ -66,7 +66,7 @@ if os.environ.get("dockerrun") == "yes":
|
|
| 66 |
|
| 67 |
## 处理 api-key 以及 允许的用户列表
|
| 68 |
my_api_key = config.get("openai_api_key", "")
|
| 69 |
-
my_api_key = os.environ.get("
|
| 70 |
|
| 71 |
xmchat_api_key = config.get("xmchat_api_key", "")
|
| 72 |
os.environ["XMCHAT_API_KEY"] = xmchat_api_key
|
|
|
|
| 66 |
|
| 67 |
## 处理 api-key 以及 允许的用户列表
|
| 68 |
my_api_key = config.get("openai_api_key", "")
|
| 69 |
+
my_api_key = os.environ.get("OPENAI_API_KEY", my_api_key)
|
| 70 |
|
| 71 |
xmchat_api_key = config.get("xmchat_api_key", "")
|
| 72 |
os.environ["XMCHAT_API_KEY"] = xmchat_api_key
|