Update Saqel Platform: 2026-09-08 23:35:48

This commit is contained in:
Hamza-Ayed
2026-09-08 23:35:48 +03:00
parent 90487a42ad
commit 41493f5dd6
11 changed files with 19 additions and 19 deletions
+4 -4
View File
@@ -40,15 +40,15 @@ try {
// Support either GEMINI_API_KEYS=key1,key2 or the legacy singular
// variable containing a comma-separated pool. Legacy services receive
// one safe key; services with round-robin support consume the pool.
$geminiPool = trim((string)(getenv('GEMINI_API_KEYS') ?: getenv('GEMINI_API_KEY') ?: ''));
$geminiPool = trim((string)(getenv('GEMINI_API_KEYS') ?: getenv('GEMINI_KEY') ?: ''));
$geminiKeys = array_values(array_filter(array_map('trim', explode(',', $geminiPool))));
if (!empty($geminiKeys)) {
putenv('GEMINI_API_KEYS=' . implode(',', $geminiKeys));
$_ENV['GEMINI_API_KEYS'] = implode(',', $geminiKeys);
$_SERVER['GEMINI_API_KEYS'] = implode(',', $geminiKeys);
putenv('GEMINI_API_KEY=' . $geminiKeys[0]);
$_ENV['GEMINI_API_KEY'] = $geminiKeys[0];
$_SERVER['GEMINI_API_KEY'] = $geminiKeys[0];
putenv('GEMINI_KEY=' . $geminiKeys[0]);
$_ENV['GEMINI_KEY'] = $geminiKeys[0];
$_SERVER['GEMINI_KEY'] = $geminiKeys[0];
}
}