summaryrefslogtreecommitdiff
path: root/examples/server/webui/src/components/SettingDialog.tsx
diff options
context:
space:
mode:
authorfirecoperana <xuqiaowei1124@gmail.com>2025-06-12 00:19:26 -0500
committerGitHub <noreply@github.com>2025-06-12 08:19:26 +0300
commit7b1a3eece7e33ce197324f44e839dec430162108 (patch)
tree77762570e9f34119063de54c6c9af09c9e917611 /examples/server/webui/src/components/SettingDialog.tsx
parent4fc3cb4a4709e747984f7b8c9097d9b997d949b5 (diff)
Add top n sigma sampler and other webui fix (#512)
Co-authored-by: firecoperana <firecoperana>
Diffstat (limited to 'examples/server/webui/src/components/SettingDialog.tsx')
-rw-r--r--examples/server/webui/src/components/SettingDialog.tsx19
1 files changed, 10 insertions, 9 deletions
diff --git a/examples/server/webui/src/components/SettingDialog.tsx b/examples/server/webui/src/components/SettingDialog.tsx
index b65e73ae..cd091a55 100644
--- a/examples/server/webui/src/components/SettingDialog.tsx
+++ b/examples/server/webui/src/components/SettingDialog.tsx
@@ -29,6 +29,7 @@ const SAMPLER_KEYS: SettKey[] = [
'typical_p',
'xtc_probability',
'xtc_threshold',
+ 'top_n_sigma'
];
const PENALTY_KEYS: SettKey[] = [
'repeat_last_n',
@@ -196,7 +197,7 @@ const SETTING_SECTIONS: SettingSection[] = [
label: (
<>
Custom JSON config (For more info, refer to{' '}
- <OpenInNewTab href="https://github.com/ggerganov/llama.cpp/blob/master/examples/server/README.md">
+ <OpenInNewTab href="https://github.com/ikawrakow/ik_llama.cpp/tree/main/examples/server/README.md">
server documentation
</OpenInNewTab>
)
@@ -224,7 +225,7 @@ const SETTING_SECTIONS: SettingSection[] = [
<br />
<br />
If you encounter any problems, create a{' '}
- <OpenInNewTab href="https://github.com/ggerganov/llama.cpp/issues/new?template=019-bug-misc.yml">
+ <OpenInNewTab href="https://github.com/ikawrakow/ik_llama.cpp/issues/new?template=019-bug-misc.yml">
Bug (misc.)
</OpenInNewTab>{' '}
report on Github. Please also specify <b>webui/experimental</b> on
@@ -456,11 +457,11 @@ function SettingsModalLongInput({
<div className="label inline">{label || configKey}</div>
<textarea
className="textarea textarea-bordered h-24"
- placeholder={`Default: ${CONFIG_DEFAULT[configKey] || 'none'}`}
- value={value}
- onChange={(e) => onChange(e.target.value)}
- />
- </label>
+ placeholder={`Default: ${CONFIG_DEFAULT[configKey] || 'none'}`}
+ value={value}
+ onChange={(e) => onChange(e.target.value)}
+ />
+ </label>
);
}
@@ -485,7 +486,7 @@ function SettingsModalShortInput({
<div className="block md:hidden mb-1">
<b>{label || configKey}</b>
<br />
- <p className="text-xs">{helpMsg}</p>
+ <p className="text-xs whitespace-normal">{helpMsg}</p>
</div>
)}
<label className="input input-bordered join-item grow flex items-center gap-2 mb-2">
@@ -494,7 +495,7 @@ function SettingsModalShortInput({
{label || configKey}
</div>
{helpMsg && (
- <div className="dropdown-content menu bg-base-100 rounded-box z-10 w-64 p-2 shadow mt-4">
+ <div className="dropdown-content menu bg-base-100 rounded-box z-10 w-64 p-2 shadow mt-4 whitespace-normal break-words">
{helpMsg}
</div>
)}