From be110a8ad73f5443ebb7d13276456a1c83ee1e44 Mon Sep 17 00:00:00 2001 From: gaoao-3 <140887777+gaoao-3@users.noreply.github.com> Date: Fri, 3 Jan 2025 18:34:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8D=E5=A4=9Akey=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=EF=BC=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- guoba.support.js | 25 ++++++++++++++++++++----- 1 file changed, 20 insertions(+), 5 deletions(-) diff --git a/guoba.support.js b/guoba.support.js index 31b4ce2..53eb9a3 100644 --- a/guoba.support.js +++ b/guoba.support.js @@ -590,11 +590,26 @@ export function supportGuoba () { component: 'Divider' }, { - field: 'geminiKey', - label: 'API密钥', - bottomHelpMessage: '前往https://makersuite.google.com/app/apikey获取', - component: 'InputPassword' - }, + field: 'geminiKey', + label: 'API密钥', + bottomHelpMessage: '前往https://makersuite.google.com/app/apikey获取', + component: 'GTags', + componentProps: { + placeholder: '请输入您的 API 密钥', + allowAdd: true, + allowDel: true, + showPrompt: true, + promptProps: { + content: '请填写您的 API 密钥', + placeholder: '请输入 API 密钥', + okText: '添加' + }, + valueParser: (value) => { + if (!value) return []; + return value.split(',').filter(Boolean); + }, + }, +}, { field: 'geminiModel', label: '模型',