fix: theme setting miss after refreshing

This commit is contained in:
jialin
2025-05-15 11:53:10 +08:00
parent 2e56e93d83
commit 5e8692eae5
8 changed files with 49 additions and 28 deletions
@@ -420,25 +420,32 @@ const AdvanceConfig: React.FC<AdvanceConfigProps> = (props) => {
options={paramsConfig}
description={
backendParamsTips.link && (
<span style={{ marginLeft: 5 }}>
{intl.formatMessage(
{ id: 'models.form.backend_parameters.vllm.tips' },
{ backend: backendParamsTips.backend || '' }
)}{' '}
<Typography.Link
style={{ display: 'inline' }}
className="flex-center"
href={backendParamsTips.link}
target="_blank"
>
<span>
{backend === backendOptionsMap.ascendMindie && (
<span>
{intl.formatMessage({ id: 'common.text.here' })}
{intl.formatMessage({ id: 'models.backend.mindie.310p' })}
</span>
<IconFont
type="icon-external-link"
className="font-size-14 m-l-4"
></IconFont>
</Typography.Link>
)}
<span style={{ marginLeft: 5 }}>
{intl.formatMessage(
{ id: 'models.form.backend_parameters.vllm.tips' },
{ backend: backendParamsTips.backend || '' }
)}{' '}
<Typography.Link
style={{ display: 'inline' }}
className="flex-center"
href={backendParamsTips.link}
target="_blank"
>
<span>
{intl.formatMessage({ id: 'common.text.here' })}
</span>
<IconFont
type="icon-external-link"
className="font-size-14 m-l-4"
></IconFont>
</Typography.Link>
</span>
</span>
)
}
+2 -1
View File
@@ -88,7 +88,8 @@ const options = [
},
{
label: '--dtype',
value: '--dtype'
value: '--dtype',
options: ['auto', 'half', 'float16', 'bfloat16', 'float', 'float32']
},
{
label: '--rope-scaling',