mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
feat: geminikey load balancing
This commit is contained in:
parent
7710d45c20
commit
4cebbb5408
1 changed files with 1 additions and 1 deletions
|
|
@ -271,7 +271,7 @@ export const Config = new Proxy(config, {
|
||||||
if (typeof target[property] === 'string' && target[property].includes(',')) {
|
if (typeof target[property] === 'string' && target[property].includes(',')) {
|
||||||
const keys = target[property].split(',').map(key => key.trim()).filter(Boolean)
|
const keys = target[property].split(',').map(key => key.trim()).filter(Boolean)
|
||||||
const selectedKey = keys[Math.floor(Math.random() * keys.length)]
|
const selectedKey = keys[Math.floor(Math.random() * keys.length)]
|
||||||
console.log(`[ChatGPT-Plugin] 当前使用的Gemini Key: ${selectedKey}`)
|
console.log(`[ChatGPT-Plugin] 当前使用的Gemini Key: ${selectedKey.slice(0, 8)}...`)
|
||||||
return selectedKey
|
return selectedKey
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue