This commit is contained in:
sijinhui 2024-05-07 16:46:38 +08:00
parent 5b1f0355ce
commit f977c52859

View File

@ -59,11 +59,11 @@ function getApiKey(keys?: string) {
const randomIndex = Math.floor(Math.random() * apiKeys.length); const randomIndex = Math.floor(Math.random() * apiKeys.length);
const apiKey = apiKeys[randomIndex]; const apiKey = apiKeys[randomIndex];
if (apiKey) { if (apiKey) {
console.log( // console.log(
`[Server Config] using ${randomIndex + 1} of ${ // `[Server Config] using ${randomIndex + 1} of ${
apiKeys.length // apiKeys.length
} api key - ${apiKey}`, // } api key - ${apiKey}`,
); // );
} }
return apiKey; return apiKey;