webui : minor typo fixes (#12116)

* fix typos and improve menu text clarity

* rename variable trimedValue to trimmedValue

* add updated index.html.gz

* rebuild

---------

Co-authored-by: Xuan Son Nguyen <son@huggingface.co>
This commit is contained in:
Vivian
2025-03-01 15:45:09 +05:30
committed by GitHub
parent 06c2b1561d
commit 2cc4a5e44a
2 changed files with 7 additions and 7 deletions

Binary file not shown.

View File

@ -148,13 +148,13 @@ const SETTING_SECTIONS: SettingSection[] = [
fields: [ fields: [
{ {
type: SettingInputType.CHECKBOX, type: SettingInputType.CHECKBOX,
label: 'Expand though process by default for generating message', label: 'Expand thought process by default when generating messages',
key: 'showThoughtInProgress', key: 'showThoughtInProgress',
}, },
{ {
type: SettingInputType.CHECKBOX, type: SettingInputType.CHECKBOX,
label: label:
'Exclude thought process when sending request to API (Recommended for DeepSeek-R1)', 'Exclude thought process when sending requests to API (Recommended for DeepSeek-R1)',
key: 'excludeThoughtOnReq', key: 'excludeThoughtOnReq',
}, },
], ],
@ -247,7 +247,7 @@ const SETTING_SECTIONS: SettingSection[] = [
This feature uses{' '} This feature uses{' '}
<OpenInNewTab href="https://pyodide.org">pyodide</OpenInNewTab>, <OpenInNewTab href="https://pyodide.org">pyodide</OpenInNewTab>,
downloaded from CDN. To use this feature, ask the LLM to generate downloaded from CDN. To use this feature, ask the LLM to generate
python code inside a markdown code block. You will see a "Run" Python code inside a Markdown code block. You will see a "Run"
button on the code block, near the "Copy" button. button on the code block, near the "Copy" button.
</small> </small>
</> </>
@ -274,7 +274,7 @@ export default function SettingDialog({
); );
const resetConfig = () => { const resetConfig = () => {
if (window.confirm('Are you sure to reset all settings?')) { if (window.confirm('Are you sure you want to reset all settings?')) {
setLocalConfig(CONFIG_DEFAULT); setLocalConfig(CONFIG_DEFAULT);
} }
}; };
@ -296,9 +296,9 @@ export default function SettingDialog({
return; return;
} }
} else if (mustBeNumeric) { } else if (mustBeNumeric) {
const trimedValue = value.toString().trim(); const trimmedValue = value.toString().trim();
const numVal = Number(trimedValue); const numVal = Number(trimmedValue);
if (isNaN(numVal) || !isNumeric(numVal) || trimedValue.length === 0) { if (isNaN(numVal) || !isNumeric(numVal) || trimmedValue.length === 0) {
alert(`Value for ${key} must be numeric`); alert(`Value for ${key} must be numeric`);
return; return;
} }