feat: add description for topk

This commit is contained in:
WangCham
2025-07-16 18:15:27 +08:00
parent 246eb71b75
commit e4f321ea7a
4 changed files with 16 additions and 0 deletions

View File

@@ -249,8 +249,15 @@ export default function KBForm({
type="number"
{...field}
onChange={(e) => field.onChange(Number(e.target.value))}
className="w-[180px] h-10 text-base appearance-none"
min={1}
max={30}
defaultValue={5}
/>
</FormControl>
<FormDescription>
{t('knowledge.topKdescription')}
</FormDescription>
<FormMessage />
</FormItem>
)}