forked from open-webui/open-webui
		
	fix: num_predict default value should match ollama default
https://github.com/jmorganca/ollama/blob/main/docs/modelfile.md#valid-parameters-and-values
This commit is contained in:
		
							parent
							
								
									7753851e51
								
							
						
					
					
						commit
						0d6440f5c0
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -516,7 +516,7 @@ | ||||||
| 				class="p-1 px-3 text-xs flex rounded transition" | 				class="p-1 px-3 text-xs flex rounded transition" | ||||||
| 				type="button" | 				type="button" | ||||||
| 				on:click={() => { | 				on:click={() => { | ||||||
| 					options.num_predict = options.num_predict === '' ? 256 : ''; | 					options.num_predict = options.num_predict === '' ? 128 : ''; | ||||||
| 				}} | 				}} | ||||||
| 			> | 			> | ||||||
| 				{#if options.num_predict === ''} | 				{#if options.num_predict === ''} | ||||||
|  | @ -533,7 +533,7 @@ | ||||||
| 					<input | 					<input | ||||||
| 						id="steps-range" | 						id="steps-range" | ||||||
| 						type="range" | 						type="range" | ||||||
| 						min="1" | 						min="-2" | ||||||
| 						max="16000" | 						max="16000" | ||||||
| 						step="1" | 						step="1" | ||||||
| 						bind:value={options.num_predict} | 						bind:value={options.num_predict} | ||||||
|  | @ -545,7 +545,7 @@ | ||||||
| 						bind:value={options.num_predict} | 						bind:value={options.num_predict} | ||||||
| 						type="number" | 						type="number" | ||||||
| 						class=" bg-transparent text-center w-14" | 						class=" bg-transparent text-center w-14" | ||||||
| 						min="1" | 						min="-2" | ||||||
| 						max="16000" | 						max="16000" | ||||||
| 						step="1" | 						step="1" | ||||||
| 					/> | 					/> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy J. Baek
						Timothy J. Baek