🔖 chore: Update model test tips

This commit is contained in:
MartialBE
2024-05-21 18:54:26 +08:00
parent 9bb90df5c1
commit fc51dffaca
4 changed files with 20 additions and 18 deletions

View File

@@ -21,7 +21,7 @@ const ResponseTimeLabel = ({ test_time, response_time, handle_action }) => {
}
let title = (
<>
点击测速
点击测速(仅支持chat模型)
<br />
{test_time != 0 ? '上次测速时间:' + timestamp2string(test_time) : '未测试'}
</>

View File

@@ -281,20 +281,21 @@ export default function ChannelTableRow({ item, manageChannel, handleOpenModal,
<TableCell>
<Stack direction="row" justifyContent="center" alignItems="center" spacing={1}>
<Button
id="test-model-button"
aria-controls={openTest ? 'test-model-menu' : undefined}
aria-haspopup="true"
aria-expanded={openTest ? 'true' : undefined}
variant="outlined"
disableElevation
onClick={handleTestModel}
endIcon={<KeyboardArrowDownIcon />}
size="small"
>
测试
</Button>
<Tooltip title="仅支持chat模型" placement="top">
<Button
id="test-model-button"
aria-controls={openTest ? 'test-model-menu' : undefined}
aria-haspopup="true"
aria-expanded={openTest ? 'true' : undefined}
variant="outlined"
disableElevation
onClick={handleTestModel}
endIcon={<KeyboardArrowDownIcon />}
size="small"
>
测试
</Button>
</Tooltip>
<IconButton onClick={handleOpenMenu} sx={{ color: 'rgb(99, 115, 129)' }}>
<IconDotsVertical />
</IconButton>

View File

@@ -34,7 +34,7 @@ const defaultConfig = {
key: '请输入渠道对应的鉴权密钥',
other: '',
proxy: '单独设置代理地址支持http和socks5例如http://127.0.0.1:1080',
test_model: '用于测试使用的模型,为空时无法测速,如gpt-3.5-turbo',
test_model: '用于测试使用的模型,为空时无法测速,如gpt-3.5-turbo仅支持chat模型',
models:
'请选择该渠道所支持的模型,你也可以输入通配符*来匹配模型例如gpt-3.5*表示支持所有gpt-3.5开头的模型,*号只能在最后一位使用前面必须有字符例如gpt-3.5*是正确的,*gpt-3.5是错误的',
model_mapping: