From 0f9ecfef96442310a7965f96c0c5154f48a8e79a Mon Sep 17 00:00:00 2001 From: Vivian Date: Wed, 26 Feb 2025 15:37:31 +0530 Subject: [PATCH 1/2] Fix typos and improve text clarity --- examples/server/webui/src/components/SettingDialog.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/server/webui/src/components/SettingDialog.tsx b/examples/server/webui/src/components/SettingDialog.tsx index 592b93fa39309..c0351537e2337 100644 --- a/examples/server/webui/src/components/SettingDialog.tsx +++ b/examples/server/webui/src/components/SettingDialog.tsx @@ -148,13 +148,13 @@ const SETTING_SECTIONS: SettingSection[] = [ fields: [ { type: SettingInputType.CHECKBOX, - label: 'Expand though process by default for generating message', + label: 'Expand thought process by default when generating messages', key: 'showThoughtInProgress', }, { type: SettingInputType.CHECKBOX, 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', }, ], @@ -247,7 +247,7 @@ const SETTING_SECTIONS: SettingSection[] = [ This feature uses{' '} pyodide, 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. @@ -274,7 +274,7 @@ export default function SettingDialog({ ); 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); } }; From 23682b714d2ce591fec7974579ec159aeeff640e Mon Sep 17 00:00:00 2001 From: Vivian Date: Wed, 26 Feb 2025 15:43:47 +0530 Subject: [PATCH 2/2] fix variable name --- examples/server/webui/src/components/SettingDialog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/server/webui/src/components/SettingDialog.tsx b/examples/server/webui/src/components/SettingDialog.tsx index c0351537e2337..b65e73ae16926 100644 --- a/examples/server/webui/src/components/SettingDialog.tsx +++ b/examples/server/webui/src/components/SettingDialog.tsx @@ -296,9 +296,9 @@ export default function SettingDialog({ return; } } else if (mustBeNumeric) { - const trimedValue = value.toString().trim(); - const numVal = Number(trimedValue); - if (isNaN(numVal) || !isNumeric(numVal) || trimedValue.length === 0) { + const trimmedValue = value.toString().trim(); + const numVal = Number(trimmedValue); + if (isNaN(numVal) || !isNumeric(numVal) || trimmedValue.length === 0) { alert(`Value for ${key} must be numeric`); return; }