mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-03 00:26:40 +08:00
merge
This commit is contained in:
parent
5b1f0355ce
commit
f977c52859
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user