Skip to content

Commit 2c1f2eb

Browse files
vynridengxson
authored andcommitted
webui : minor typo fixes (ggml-org#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>
1 parent 7b616fc commit 2c1f2eb

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

examples/server/public/index.html.gz

7 Bytes
Binary file not shown.

examples/server/webui/src/components/SettingDialog.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,13 +148,13 @@ const SETTING_SECTIONS: SettingSection[] = [
148148
fields: [
149149
{
150150
type: SettingInputType.CHECKBOX,
151-
label: 'Expand though process by default for generating message',
151+
label: 'Expand thought process by default when generating messages',
152152
key: 'showThoughtInProgress',
153153
},
154154
{
155155
type: SettingInputType.CHECKBOX,
156156
label:
157-
'Exclude thought process when sending request to API (Recommended for DeepSeek-R1)',
157+
'Exclude thought process when sending requests to API (Recommended for DeepSeek-R1)',
158158
key: 'excludeThoughtOnReq',
159159
},
160160
],
@@ -247,7 +247,7 @@ const SETTING_SECTIONS: SettingSection[] = [
247247
This feature uses{' '}
248248
<OpenInNewTab href="https://pyodide.org">pyodide</OpenInNewTab>,
249249
downloaded from CDN. To use this feature, ask the LLM to generate
250-
python code inside a markdown code block. You will see a "Run"
250+
Python code inside a Markdown code block. You will see a "Run"
251251
button on the code block, near the "Copy" button.
252252
</small>
253253
</>
@@ -274,7 +274,7 @@ export default function SettingDialog({
274274
);
275275

276276
const resetConfig = () => {
277-
if (window.confirm('Are you sure to reset all settings?')) {
277+
if (window.confirm('Are you sure you want to reset all settings?')) {
278278
setLocalConfig(CONFIG_DEFAULT);
279279
}
280280
};
@@ -296,9 +296,9 @@ export default function SettingDialog({
296296
return;
297297
}
298298
} else if (mustBeNumeric) {
299-
const trimedValue = value.toString().trim();
300-
const numVal = Number(trimedValue);
301-
if (isNaN(numVal) || !isNumeric(numVal) || trimedValue.length === 0) {
299+
const trimmedValue = value.toString().trim();
300+
const numVal = Number(trimmedValue);
301+
if (isNaN(numVal) || !isNumeric(numVal) || trimmedValue.length === 0) {
302302
alert(`Value for ${key} must be numeric`);
303303
return;
304304
}

0 commit comments

Comments
 (0)