mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-11-17 21:53:42 +08:00
🔖 chore: Update model test tips
This commit is contained in:
@@ -21,7 +21,7 @@ const ResponseTimeLabel = ({ test_time, response_time, handle_action }) => {
|
||||
}
|
||||
let title = (
|
||||
<>
|
||||
点击测速
|
||||
点击测速(仅支持chat模型)
|
||||
<br />
|
||||
{test_time != 0 ? '上次测速时间:' + timestamp2string(test_time) : '未测试'}
|
||||
</>
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user