victor HF staff commited on
Commit
65b948d
1 Parent(s): 2b9a956

Adjusted the temperature and max tokens input fields, including updating the min, max, and step values.

Browse files
src/lib/components/Playground/PlaygroundOptions.svelte CHANGED
@@ -22,8 +22,9 @@
22
  </div>
23
  <div>
24
  <div class="flex items-center justify-between">
25
- <label for="temperature-range" class="mb-2 block text-sm font-medium text-gray-900 dark:text-white"
26
- >Temperature</label
 
27
  >
28
  <input
29
  type="number"
@@ -46,25 +47,26 @@
46
  </div>
47
  <div>
48
  <div class="flex items-center justify-between">
49
- <label for="max-tokens-range" class="mb-2 block text-sm font-medium text-gray-900 dark:text-white"
50
- >Max tokens</label
 
51
  >
52
  <input
53
  type="number"
54
  class="w-20 rounded border px-1 py-0.5 text-right text-sm"
55
  bind:value={maxTokens}
56
- min="1"
57
  max="32000"
58
- step="32"
59
  />
60
  </div>
61
  <input
62
  id="max-tokens-range"
63
  type="range"
64
  bind:value={maxTokens}
65
- min="1"
66
- max="32000"
67
- step="32"
68
  class="h-2 w-full cursor-pointer appearance-none rounded-lg bg-gray-200 accent-black dark:bg-gray-700"
69
  />
70
  </div>
 
22
  </div>
23
  <div>
24
  <div class="flex items-center justify-between">
25
+ <label
26
+ for="temperature-range"
27
+ class="mb-2 block text-sm font-medium text-gray-900 dark:text-white">Temperature</label
28
  >
29
  <input
30
  type="number"
 
47
  </div>
48
  <div>
49
  <div class="flex items-center justify-between">
50
+ <label
51
+ for="max-tokens-range"
52
+ class="mb-2 block text-sm font-medium text-gray-900 dark:text-white">Max tokens</label
53
  >
54
  <input
55
  type="number"
56
  class="w-20 rounded border px-1 py-0.5 text-right text-sm"
57
  bind:value={maxTokens}
58
+ min="0"
59
  max="32000"
60
+ step="512"
61
  />
62
  </div>
63
  <input
64
  id="max-tokens-range"
65
  type="range"
66
  bind:value={maxTokens}
67
+ min="0"
68
+ max="16000"
69
+ step="512"
70
  class="h-2 w-full cursor-pointer appearance-none rounded-lg bg-gray-200 accent-black dark:bg-gray-700"
71
  />
72
  </div>