fix(share): The language of the shared page will cause the language of the original website to change. (#18043)

This commit is contained in:
chanx
2026-08-10 17:26:18 +08:00
committed by GitHub
parent d6292da508
commit 5a2cd36b45
8 changed files with 44 additions and 47 deletions

View File

@@ -131,32 +131,29 @@ export function NextMessageInput({
};
}, [isResizing]);
const thinkingOptions = useMemo(
() => [
{
label: t('chat.thinkingLevelUltra'),
value: '4',
description: t('chat.thinkingLevelUltraDescription'),
},
{
label: t('chat.thinkingLevelHigh'),
value: '3',
description: t('chat.thinkingLevelHighDescription'),
},
{
label: t('chat.thinkingLevelMedium'),
value: '2',
description: t('chat.thinkingLevelMediumDescription'),
},
{
label: t('chat.thinkingLevelLow'),
value: '1',
description: t('chat.thinkingLevelLowDescription'),
},
{ label: t('chat.thinkingLevelNone'), value: '0' },
],
[t],
);
const thinkingOptions = [
{
label: t('chat.thinkingLevelUltra'),
value: '4',
description: t('chat.thinkingLevelUltraDescription'),
},
{
label: t('chat.thinkingLevelHigh'),
value: '3',
description: t('chat.thinkingLevelHighDescription'),
},
{
label: t('chat.thinkingLevelMedium'),
value: '2',
description: t('chat.thinkingLevelMediumDescription'),
},
{
label: t('chat.thinkingLevelLow'),
value: '1',
description: t('chat.thinkingLevelLowDescription'),
},
{ label: t('chat.thinkingLevelNone'), value: '0' },
];
const handleThinkingChange = useCallback((value: string) => {
setEnableThinking(value);