mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-18 06:17:06 +00:00
适配多key添加?
This commit is contained in:
parent
1b55b48b49
commit
be110a8ad7
1 changed files with 20 additions and 5 deletions
|
|
@ -590,11 +590,26 @@ export function supportGuoba () {
|
||||||
component: 'Divider'
|
component: 'Divider'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'geminiKey',
|
field: 'geminiKey',
|
||||||
label: 'API密钥',
|
label: 'API密钥',
|
||||||
bottomHelpMessage: '前往https://makersuite.google.com/app/apikey获取',
|
bottomHelpMessage: '前往https://makersuite.google.com/app/apikey获取',
|
||||||
component: 'InputPassword'
|
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',
|
field: 'geminiModel',
|
||||||
label: '模型',
|
label: '模型',
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue