Spaces:
Sleeping
Sleeping
Update planmate/config.py
Browse files- planmate/config.py +2 -2
planmate/config.py
CHANGED
|
@@ -65,11 +65,11 @@ def get_env(key: str) -> str:
|
|
| 65 |
return val
|
| 66 |
|
| 67 |
# ---------- Gemini Key Rotation ----------
|
| 68 |
-
gemini_keys = os.getenv("
|
| 69 |
gemini_keys = [k.strip() for k in gemini_keys if k.strip()]
|
| 70 |
|
| 71 |
if not gemini_keys:
|
| 72 |
-
raise RuntimeError("No
|
| 73 |
|
| 74 |
gemini_cycle = cycle(gemini_keys)
|
| 75 |
_current_gemini_key = next(gemini_cycle)
|
|
|
|
| 65 |
return val
|
| 66 |
|
| 67 |
# ---------- Gemini Key Rotation ----------
|
| 68 |
+
gemini_keys = os.getenv("GEMINI_API_KEY", "").split(",")
|
| 69 |
gemini_keys = [k.strip() for k in gemini_keys if k.strip()]
|
| 70 |
|
| 71 |
if not gemini_keys:
|
| 72 |
+
raise RuntimeError("No GEMINI_API_KEY found in environment!")
|
| 73 |
|
| 74 |
gemini_cycle = cycle(gemini_keys)
|
| 75 |
_current_gemini_key = next(gemini_cycle)
|