Spaces:
Sleeping
Sleeping
Tuchuanhuhuhu
commited on
Commit
·
06281ff
1
Parent(s):
4f67e8f
fix #1054
Browse files- modules/config.py +2 -2
modules/config.py
CHANGED
@@ -109,9 +109,9 @@ if "extra_models" in config:
|
|
109 |
HIDE_MY_KEY = config.get("hide_my_key", False)
|
110 |
|
111 |
google_genai_api_key = os.environ.get(
|
112 |
-
"GOOGLE_PALM_API_KEY",
|
113 |
google_genai_api_key = os.environ.get(
|
114 |
-
"GOOGLE_GENAI_API_KEY",
|
115 |
google_genai_api_key = config.get("google_palm_api_key", google_genai_api_key)
|
116 |
google_genai_api_key = config.get("google_genai_api_key", google_genai_api_key)
|
117 |
os.environ["GOOGLE_GENAI_API_KEY"] = google_genai_api_key
|
|
|
109 |
HIDE_MY_KEY = config.get("hide_my_key", False)
|
110 |
|
111 |
google_genai_api_key = os.environ.get(
|
112 |
+
"GOOGLE_PALM_API_KEY", "")
|
113 |
google_genai_api_key = os.environ.get(
|
114 |
+
"GOOGLE_GENAI_API_KEY", "")
|
115 |
google_genai_api_key = config.get("google_palm_api_key", google_genai_api_key)
|
116 |
google_genai_api_key = config.get("google_genai_api_key", google_genai_api_key)
|
117 |
os.environ["GOOGLE_GENAI_API_KEY"] = google_genai_api_key
|