feat: 轮询geminiKeys,用英文逗号隔开 (#744)

This commit is contained in:
misaka20002 2025-01-04 14:49:52 +08:00 committed by GitHub
parent 25520ba9fe
commit 7974c6a1c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 17 additions and 13 deletions

View file

@ -146,7 +146,7 @@ export async function translate (msg, to = 'auto', from = 'auto', ai = Config.tr
}
case 'gemini': {
let client = new CustomGoogleGeminiClient({
key: Config.geminiKey,
key: Config.getGeminiKey(),
model: Config.geminiModel,
baseUrl: Config.geminiBaseUrl,
debug: Config.debug