🔖 chore: Update model test tips

This commit is contained in:
MartialBE 2024-05-21 18:54:26 +08:00
parent 9bb90df5c1
commit fc51dffaca
No known key found for this signature in database
GPG Key ID: 27C0267EC84B0A5C
4 changed files with 20 additions and 18 deletions

View File

@ -610,7 +610,8 @@
",一行一个密钥": ". One key per line",
"批量添加": "Batch Add",
"是否启用": "Enable",
"点击测速": "Click to test speed",
"点击测速(仅支持chat模型)": "Click to test speed(Only support chat model)",
"仅支持chat模型": "Only support chat model",
"上次测速时间:": "Last test time:",
"未测试": "Not tested",
"手动": "Manual",
@ -656,7 +657,7 @@
"可空请输入中转API地址例如通过cloudflare中转": "Optional, please enter the transfer API address, for example, through cloudflare transfer",
"请输入渠道对应的鉴权密钥": "Please enter the authentication key corresponding to the channel",
"单独设置代理地址支持http和socks5例如http://127.0.0.1:1080": "Set the proxy address separately, support http and socks5, for example: http://127.0.0.1:1080",
"用于测试使用的模型,为空时无法测速,如gpt-3.5-turbo": "The model used for testing, cannot be tested when empty, such as: gpt-3.5-turbo",
"用于测试使用的模型,为空时无法测速,如gpt-3.5-turbo仅支持chat模型": "The model used for testing, cannot be tested when empty, such as: gpt-3.5-turboOnly support chat model.",
"请选择该渠道所支持的模型,你也可以输入通配符*来匹配模型例如gpt-3.5*表示支持所有gpt-3.5开头的模型,*号只能在最后一位使用前面必须有字符例如gpt-3.5*是正确的,*gpt-3.5是错误的": "Please select the models supported by the channel. You can also enter the wildcard * to match the model, for example: gpt-3.5*, which means that all models starting with gpt-3.5 are supported. The * can only be used in the last position, and there must be characters in front of it. For example: gpt-3.5* is correct, *gpt-3.5 is incorrect",
"请输入要修改的模型映射关系格式为api请求模型ID:实际转发给渠道的模型ID使用JSON数组表示例如": "Please enter the model mapping relationship to be modified, the format is: api request model ID: model ID actually forwarded to the channel, represented by a JSON array, for example:",
"请选择该渠道所支持的用户组": "Please select the user group supported by this channel",

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: