浏览代码

logit bias: update tooltip message

dannyl1u 2 月之前
父节点
当前提交
34e3cb6881
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte

+ 3 - 3
src/lib/components/chat/Settings/Advanced/AdvancedParams.svelte

@@ -302,7 +302,7 @@
 	<div class=" py-0.5 w-full justify-between">
 	<div class=" py-0.5 w-full justify-between">
 		<Tooltip
 		<Tooltip
 			content={$i18n.t(
 			content={$i18n.t(
-				'Boosting or penalizing specific tokens for constrained responses. Bias values will be normalized to be between -100 and 100 (inclusive). (Default: none)'
+				'Boosting or penalizing specific tokens for constrained responses. Bias values will be clamped between -100 and 100 (inclusive). (Default: none)'
 			)}
 			)}
 			placement="top-start"
 			placement="top-start"
 			className="inline-tooltip"
 			className="inline-tooltip"
@@ -331,9 +331,9 @@
 			<div class="flex mt-0.5 space-x-2">
 			<div class="flex mt-0.5 space-x-2">
 				<div class=" flex-1">
 				<div class=" flex-1">
 					<input
 					<input
-						class="w-full rounded-lg py-2 px-1 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden"
+						class="w-full rounded-lg pl-2 py-2 px-1 text-sm dark:text-gray-300 dark:bg-gray-850 outline-hidden"
 						type="text"
 						type="text"
-						placeholder={$i18n.t('Enter logit bias as comma-seperated "token_id:bias_value" pairs')}
+						placeholder={$i18n.t('Enter comma-seperated "token:bias_value" pairs (example: 5432:100, 413:-100)')}
 						bind:value={params.logit_bias}
 						bind:value={params.logit_bias}
 						autocomplete="off"
 						autocomplete="off"
 					/>
 					/>