add frontend display, more model

This commit is contained in:
creamlike1024
2025-05-15 20:00:59 +08:00
parent 108b67be6c
commit 59aabb4311
4 changed files with 52 additions and 6 deletions

View File

@@ -118,6 +118,11 @@ export const CHANNEL_OPTIONS = [
{
value: 48,
color: 'blue',
label: 'xAI'
}
label: 'xAI',
},
{
value: 49,
color: 'blue',
label: 'Coze',
},
];

View File

@@ -838,6 +838,22 @@ const EditChannel = (props) => {
/>
</>
)}
{inputs.type === 49 && (
<>
<div style={{ marginTop: 10 }}>
<Typography.Text strong>智能体ID</Typography.Text>
</div>
<Input
name='other'
placeholder={'请输入智能体ID例如7342866812345'}
onChange={(value) => {
handleInputChange('other', value);
}}
value={inputs.other}
autoComplete='new-password'
/>
</>
)}
<div style={{ marginTop: 10 }}>
<Typography.Text strong>{t('模型')}</Typography.Text>
</div>