JohnSmith9982 commited on
Commit
5e2961c
1 Parent(s): 9e6db3a

Update modules/config.py

Browse files
Files changed (1) hide show
  1. 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("my_api_key", my_api_key)
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