Fix slider formatting

This commit is contained in:
Cohee 2023-10-26 15:17:16 +03:00
parent beca613745
commit 03e513a3e4
2 changed files with 2 additions and 4 deletions

View File

@ -441,8 +441,7 @@
<input type="range" id="tail_free_sampling_novel" name="volume" min="0" max="1" step="0.001">
</div>
<div class="range-block-counter">
<input type="number" min="0" max="1" step="0.01" data-for="tail_free_sampling_novel" id="tail_free_sampling_counter_novel">
<input type="number" min="0" max="1" step="0.001" data-for="tail_free_sampling_novel" id="tail_free_sampling_counter_novel">
</div>
</div>
</div>
@ -1214,7 +1213,6 @@
</div>
<div class="range-block-counter">
<input type="number" min="0" max="1" step="0.001" data-for="top_p_novel" id="top_p_counter_novel">
</div>
</div>
</div>

View File

@ -268,7 +268,7 @@ const sliders = [
{
sliderId: "#top_p_novel",
counterId: "#top_p_counter_novel",
format: (val) => Number(val).toFixed(2),
format: (val) => Number(val).toFixed(3),
setValue: (val) => { nai_settings.top_p = Number(val).toFixed(3); },
},
{