Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/components/ui/setting-slider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,10 @@ export function SettingSlider({
disabled={disabled}
className="tw-flex-1"
/>
<div className="tw-min-w-[40px] tw-text-right tw-text-sm">
{localValue}
<div className="tw-min-w-[60px] tw-text-right tw-text-sm tw-tabular-nums">
{localValue >= 1000
? `${localValue % 1000 === 0 ? localValue / 1000 : (localValue / 1000).toFixed(1)}k`
: localValue}
{suffix}
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/settings/v2/components/ModelSettings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export const ModelSettings: React.FC = () => {
<SettingItem
type="slider"
title="Auto-compact threshold"
description="Automatically summarize context using map-reduce when it exceeds this token count. Default is 128k."
description="Automatically summarize context when it exceeds this token count. Set to maximum to make it less aggressive."
min={64000}
max={1000000}
step={64000}
Expand Down