@@ -119,36 +119,6 @@ <h2 class="font-bold mb-4 ml-4">Conversations</h2>
119119 </ li >
120120 </ ul >
121121 </ div >
122-
123- <!-- Templates -->
124- < div class ="dropdown dropdown-end dropdown-bottom ">
125- < div tabindex ="0 " role ="button " class ="btn m-1 ">
126- Templates
127- < svg width ="12px " height ="12px " class ="inline-block h-2 w-2 fill-current opacity-60 " xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 2048 2048 ">
128- < path d ="M1799 349l242 241-1017 1017L7 590l242-241 775 775 775-775z "> </ path >
129- </ svg >
130- </ div >
131- < ul tabindex ="0 " class ="dropdown-content bg-base-300 rounded-box z-[1] w-52 p-2 shadow-2xl h-80 overflow-y-auto ">
132- < li >
133- < button
134- class ="btn btn-sm btn-block w-full btn-ghost justify-start "
135- :class ="{ 'btn-active': config.chat_template === 'chatml' } "
136- @click ="config.chat_template = 'chatml' ">
137- auto
138- </ button >
139- </ li >
140- < li v-for ="tmpl in templates ">
141- < input
142- type ="radio "
143- name ="tmpl-dropdown "
144- class ="theme-controller btn btn-sm btn-block w-full btn-ghost justify-start "
145- :aria-label ="tmpl "
146- :value ="tmpl "
147- :checked ="config.chat_template === tmpl "
148- @click ="setSelectedTemplate(tmpl) " />
149- </ li >
150- </ ul >
151- </ div >
152122 </ div >
153123 </ div >
154124
@@ -319,7 +289,6 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
319289 // Note: in order not to introduce breaking changes, please keep the same data type (number, string, etc) if you want to change the default value. Do not use null or undefined for default value.
320290 apiKey : '' ,
321291 systemMessage : 'You are a helpful assistant.' ,
322- chat_template : 'chatml' ,
323292 input_prefix : '' ,
324293 input_suffix : '' ,
325294 // make sure these default values are in sync with `common.h`
@@ -347,7 +316,6 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
347316 const CONFIG_INFO = {
348317 apiKey : 'Set the API Key if you are using --api-key option for the server.' ,
349318 systemMessage : 'The starting message that defines how model should behave.' ,
350- chat_template : 'The fromat used for messages.' ,
351319 input_prefix : 'Prefix for user messages in custom chat templates.' ,
352320 input_suffix : 'Suffix for user messages in custom chat templates.' ,
353321 samplers : 'The order at which samplers are applied, in simplified way. Default is "dkypmxt": dry->top_k->typ_p->top_p->min_p->xtc->temperature' ,
@@ -375,7 +343,6 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
375343 const CONFIG_NUMERIC_KEYS = Object . entries ( CONFIG_DEFAULT ) . filter ( e => isNumeric ( e [ 1 ] ) ) . map ( e => e [ 0 ] ) ;
376344 // list of themes supported by daisyui
377345 const THEMES = [ 'light' , 'dark' , 'cupcake' , 'bumblebee' , 'emerald' , 'corporate' , 'synthwave' , 'retro' , 'cyberpunk' , 'valentine' , 'halloween' , 'garden' , 'forest' , 'aqua' , 'lofi' , 'pastel' , 'fantasy' , 'wireframe' , 'black' , 'luxury' , 'dracula' , 'cmyk' , 'autumn' , 'business' , 'acid' , 'lemonade' , 'night' , 'coffee' , 'winter' , 'dim' , 'nord' , 'sunset' ] ;
378- const CHAT_TEMPLATES = [ 'chatml' , 'llama2' , 'mistral' , 'phi3' , 'zephyr' , 'monarch' , 'gemma' , 'gemma2' , 'orion' , 'openchat' , 'vicuna' , 'vicuna-orca' , 'deepseek' , 'command-r' , 'llama3' , 'chatglm3' , 'chatglm4' , 'minicpm' , 'deepseek2' , 'exaone3' , 'rwkv-world' , 'granite' , 'custom' ] ;
379346
380347 // markdown support
381348 const VueMarkdown = defineComponent (
@@ -522,7 +489,6 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
522489 editingMsg : null ,
523490 // const
524491 themes : THEMES ,
525- templates : CHAT_TEMPLATES ,
526492 configDefault : { ...CONFIG_DEFAULT } ,
527493 configInfo : { ...CONFIG_INFO } ,
528494 }
@@ -542,9 +508,6 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
542508 this . selectedTheme = theme ;
543509 StorageUtils . setTheme ( theme ) ;
544510 } ,
545- setSelectedTemplate ( template ) {
546- this . config . chat_template = template ;
547- } ,
548511 newConversation ( ) {
549512 if ( this . isGenerating ) return ;
550513 this . viewingConvId = StorageUtils . getNewConvId ( ) ;
@@ -604,7 +567,6 @@ <h3 class="text-lg font-bold mb-6">Settings</h3>
604567 stream : true ,
605568 cache_prompt : true ,
606569 samplers : this . config . samplers ,
607- chat_template : this . config . chat_template ,
608570 input_prefix : this . config . input_prefix ,
609571 input_suffix : this . config . input_suffix ,
610572 temperature : this . config . temperature ,
0 commit comments