From 9797855cae81752536f4a772c95d0dc2a4beaca6 Mon Sep 17 00:00:00 2001 From: X Date: Tue, 31 Mar 2026 14:23:45 +0000 Subject: [PATCH] =?UTF-8?q?=E4=B8=8A=E5=82=B3=E6=AA=94=E6=A1=88=E5=88=B0?= =?UTF-8?q?=E3=80=8Cmodules=E3=80=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/streaming-generation.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/streaming-generation.js b/modules/streaming-generation.js index a0d2ff9..6ebb1dc 100644 --- a/modules/streaming-generation.js +++ b/modules/streaming-generation.js @@ -177,7 +177,9 @@ class StreamingGeneration { const provider = String(opts.api || '').toLowerCase(); const reverseProxyConfigured = String(opts.apiurl || '').trim().length > 0; const pwd = String(opts.apipassword || '').trim(); - if (!reverseProxyConfigured && pwd) { + if (pwd && provider === 'custom') { + await writeSecret(SECRET_KEYS.CUSTOM, pwd, 'xbgen-inline'); + } else if (!reverseProxyConfigured && pwd) { const providerToSecretKey = { openai: SECRET_KEYS.OPENAI, gemini: SECRET_KEYS.MAKERSUITE,