@@ -199,21 +199,24 @@ <h2 class="font-bold mb-4 ml-4">Conversations</h2>
199199 < h3 class ="text-lg font-bold mb-6 "> Settings</ h3 >
200200 < div class ="h-[calc(90vh-12rem)] overflow-y-auto ">
201201 < p class ="opacity-40 mb-6 "> Settings below are saved in browser's localStorage</ p >
202- < settings-modal-short-input :config-key ="'apiKey' " :config-default ="configDefault " :config-info ="configInfo " v-model ="config.apiKey "> </ settings-modal-short-input >
202+ < settings-modal-short-input :name =" 'apiKey' " : config-key ="'apiKey' " :config-default ="configDefault " :config-info ="configInfo " v-model ="config.apiKey "> </ settings-modal-short-input >
203203 < label class ="form-control mb-2 ">
204204 < div class ="label "> System Message</ div >
205205 < textarea class ="textarea textarea-bordered h-24 " :placeholder ="'Default: ' + configDefault.systemMessage " v-model ="config.systemMessage "> </ textarea >
206206 </ label >
207207 < template v-for ="configKey in ['temperature', 'top_k', 'top_p', 'min_p', 'max_tokens'] ">
208- < settings-modal-short-input :config-key ="configKey " :config-default ="configDefault " :config-info ="configInfo " v-model ="config[configKey] " />
208+ < settings-modal-short-input :name =" configKey " : config-key ="configKey " :config-default ="configDefault " :config-info ="configInfo " v-model ="config[configKey] " />
209209 </ template >
210210 <!-- TODO: add more sampling-related configs, please regroup them into different "collapse" sections -->
211211 <!-- Section: Other sampler settings -->
212212 < details class ="collapse collapse-arrow bg-base-200 mb-2 overflow-visible ">
213213 < summary class ="collapse-title font-bold "> Other sampler settings</ summary >
214214 < div class ="collapse-content ">
215+ <!-- Samplers queue -->
216+ < settings-modal-short-input :name ="'Samplers queue' " :config-key ="'samplers' " :config-default ="configDefault " :config-info ="configInfo " v-model ="config.samplers "> </ settings-modal-short-input >
217+ <!-- Samplers -->
215218 < template v-for ="configKey in ['dynatemp_range', 'dynatemp_exponent', 'typical_p', 'xtc_probability', 'xtc_threshold'] ">
216- < settings-modal-short-input :config-key ="configKey " :config-default ="configDefault " :config-info ="configInfo " v-model ="config[configKey] " />
219+ < settings-modal-short-input :name =" configKey " : config-key ="configKey " :config-default ="configDefault " :config-info ="configInfo " v-model ="config[configKey] " />
217220 </ template >
218221 </ div >
219222 </ details >
@@ -222,7 +225,7 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
222225 < summary class ="collapse-title font-bold "> Penalties settings</ summary >
223226 < div class ="collapse-content ">
224227 < template v-for ="configKey in ['repeat_last_n', 'repeat_penalty', 'presence_penalty', 'frequency_penalty', 'dry_multiplier', 'dry_base', 'dry_allowed_length', 'dry_penalty_last_n'] ">
225- < settings-modal-short-input :config-key ="configKey " :config-default ="configDefault " :config-info ="configInfo " v-model ="config[configKey] " />
228+ < settings-modal-short-input :name =" configKey " : config-key ="configKey " :config-default ="configDefault " :config-info ="configInfo " v-model ="config[configKey] " />
226229 </ template >
227230 </ div >
228231 </ details >
@@ -231,14 +234,6 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
231234 < summary class ="collapse-title font-bold "> Advanced config</ summary >
232235 < div class ="collapse-content ">
233236 < label class ="form-control mb-2 ">
234- <!-- Samplers queue -->
235- < div class ="dropdown dropdown-hover ">
236- < div tabindex ="0 " role ="button " class ="font "> Samplers queue</ div >
237- < div class ="dropdown-content menu bg-base-100 rounded-box z-10 p-2 shadow mt-4 ">
238- {{ configInfo['samplers'] }}
239- </ div >
240- </ div >
241- < textarea class ="textarea textarea-bordered flex h-12 mb-2 " :placeholder ="'Default: ' + configDefault.samplers " v-model ="config.samplers "> </ textarea >
242237 <!-- Custom parameters input -->
243238 < div class ="label inline "> Custom JSON config (For more info, refer to < a class ="underline " href ="https://github.com/ggerganov/llama.cpp/blob/master/examples/server/README.md " target ="_blank " rel ="noopener noreferrer "> server documentation</ a > )</ div >
244239 < textarea class ="textarea textarea-bordered h-24 " placeholder ="Example: { "mirostat": 1, "min_p": 0.1 } " v-model ="config.custom "> </ textarea >
@@ -262,7 +257,7 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
262257 < label class ="input input-bordered join-item grow flex items-center gap-2 mb-2 ">
263258 <!-- Show help message on hovering on the input label -->
264259 < div class ="dropdown dropdown-hover ">
265- < div tabindex ="0 " role ="button " class ="font-bold "> {{ configKey }}</ div >
260+ < div tabindex ="0 " role ="button " class ="font-bold "> {{ name }}</ div >
266261 < div class ="dropdown-content menu bg-base-100 rounded-box z-10 w-64 p-2 shadow mt-4 ">
267262 {{ configInfo[configKey] || '(no help message available)' }}
268263 </ div >
@@ -363,10 +358,10 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
363358 { props : [ "source" ] }
364359 ) ;
365360
366- // inout field to be used by settings modal
361+ // input field to be used by settings modal
367362 const SettingsModalShortInput = defineComponent ( {
368363 template : document . getElementById ( 'settings-modal-short-input' ) . innerHTML ,
369- props : [ 'configKey' , 'configDefault' , 'configInfo' , 'modelValue' ] ,
364+ props : [ 'name' , ' configKey', 'configDefault' , 'configInfo' , 'modelValue' ] ,
370365 } ) ;
371366
372367 // coversations is stored in localStorage
0 commit comments