- {isEdit &&
- isMultiKeyChannel &&
- keyMode === 'append' && (
-
- {t(
- '追加模式:新密钥将添加到现有密钥列表的末尾',
- )}
-
+ extraText={
+
+ {isEdit &&
+ isMultiKeyChannel &&
+ keyMode === 'append' && (
+
+ {t(
+ '追加模式:新密钥将添加到现有密钥列表的末尾',
+ )}
+
+ )}
+ {isEdit && (
+
)}
- {isEdit && (
-
- )}
- {batchExtra}
-
- }
- showClear
- />
- )
- ) : (
- <>
- {inputs.type === 41 &&
- (inputs.vertex_key_type || 'json') === 'json' ? (
- <>
- {!batch && (
-
-
- {t('密钥输入方式')}
-
-
-
-
-
+ {batchExtra}
- )}
+ }
+ showClear
+ />
+ )
+ ) : (
+ <>
+ {inputs.type === 41 &&
+ (inputs.vertex_key_type || 'json') === 'json' ? (
+ <>
+ {!batch && (
+
+
+ {t('密钥输入方式')}
+
+
+
+
+
+
+ )}
{batch && (
{
inputs.type === 33
? inputs.aws_key_type === 'api_key'
? t('请输入 API Key,格式:APIKey|Region')
- : t('按照如下格式输入:AccessKey|SecretAccessKey|Region')
+ : t(
+ '按照如下格式输入:AccessKey|SecretAccessKey|Region',
+ )
: t(type2secretPrompt(inputs.type))
}
rules={
@@ -2258,86 +2316,86 @@ const EditChannelModal = (props) => {
/>
)}
- {inputs.type === 3 && (
- <>
-
-
-
+
- handleInputChange('base_url', value)
- }
- showClear
- disabled={isIonetLocked}
+ className='!rounded-lg'
/>
-
-
-
- handleInputChange('other', value)
- }
- showClear
- />
-
-
-
- handleChannelOtherSettingsChange(
- 'azure_responses_version',
- value,
- )
- }
- showClear
- />
-
- >
- )}
+
+
+ handleInputChange('base_url', value)
+ }
+ showClear
+ disabled={isIonetLocked}
+ />
+
+
+
+ handleInputChange('other', value)
+ }
+ showClear
+ />
+
+
+
+ handleChannelOtherSettingsChange(
+ 'azure_responses_version',
+ value,
+ )
+ }
+ showClear
+ />
+
+ >
+ )}
- {inputs.type === 8 && (
- <>
-
-
-
+
- handleInputChange('base_url', value)
- }
- showClear
- disabled={isIonetLocked}
+ className='!rounded-lg'
/>
-
- >
- )}
+
+
+ handleInputChange('base_url', value)
+ }
+ showClear
+ disabled={isIonetLocked}
+ />
+
+ >
+ )}
{inputs.type === 37 && (
{
}
showClear
disabled={isIonetLocked}
- extraText={t(
- '对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写',
+ extraText={t(
+ '对于官方渠道,new-api已经内置地址,除非是第三方代理站点或者Azure的特殊接入地址,否则不需要填写',
+ )}
+ />
+
+ )}
+
+ {inputs.type === 22 && (
+
-
+ {inputs.type === 36 && (
+
+
handleInputChange('base_url', value)
- }
- optionList={[
- {
- value: 'https://ark.cn-beijing.volces.com',
- label: 'https://ark.cn-beijing.volces.com',
- },
- {
- value: 'https://ark.ap-southeast.bytepluses.com',
- label: 'https://ark.ap-southeast.bytepluses.com',
- },
- {
- value: 'doubao-coding-plan',
- label: 'Doubao Coding Plan',
- },
- ]}defaultValue='https://ark.cn-beijing.volces.com'
- disabled={isIonetLocked}
- />
-
- )}
+ }
+ showClear
+ disabled={isIonetLocked}
+ />
+
+ )}
+
+ {inputs.type === 45 && !doubaoApiEditUnlocked && (
+