Procházet zdrojové kódy

refac: token length limit

Timothy J. Baek před 1 rokem
rodič
revize
877ed69004

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

@@ -492,8 +492,8 @@
 					<input
 						id="steps-range"
 						type="range"
-						min="1"
-						max="16000"
+						min="-1"
+						max="1024000"
 						step="1"
 						bind:value={options.num_ctx}
 						class="w-full h-2 rounded-lg appearance-none cursor-pointer dark:bg-gray-700"
@@ -504,8 +504,8 @@
 						bind:value={options.num_ctx}
 						type="number"
 						class=" bg-transparent text-center w-14"
-						min="1"
-						max="16000"
+						min="-1"
+						max="1024000"
 						step="1"
 					/>
 				</div>