@@ -164,6 +164,20 @@ watch([isOpen, masteryLevelsList], async ([isOpenNow, list]) => {
164164 sortableInstance .value = null
165165 }
166166})
167+
168+ // List of evaluation modes
169+ const evaluationModes = computed (() => [
170+ { label: t (' configuration.modal.modes.withoutAi' ), value: ' without-ai' },
171+ { label: t (' configuration.modal.modes.withAi' ), value: ' with-ai' },
172+ { label: t (' configuration.modal.modes.withoutThenWithAi' ), value: ' without-then-with-ai' },
173+ ])
174+
175+ // Ensure a default evaluation mode is set when a local config is initialized
176+ watch (() => localConfig .value , (cfg ) => {
177+ if (cfg && ! cfg .settings .evaluationMode ) {
178+ cfg .settings .evaluationMode = ' without-ai'
179+ }
180+ }, { immediate: true })
167181 </script >
168182
169183<template >
@@ -401,6 +415,20 @@ watch([isOpen, masteryLevelsList], async ([isOpenNow, list]) => {
401415 :label =" t (' configuration.modal.fields.addTimer' )"
402416 />
403417 </div >
418+
419+ <div class =" flex items-center gap-2" >
420+ <UIcon name="i-lucide:bot " class="w-5 h-5 text-primary-500" />
421+ <h5 class =" font-medium" >
422+ {{ t('configuration.modal.evaluationMode') }}
423+ </h5 >
424+ </div >
425+
426+ <div class =" space-y-3" >
427+ <URadioGroup
428+ v-model =" localConfig .settings .evaluationMode "
429+ :items =" evaluationModes "
430+ />
431+ </div >
404432 </div >
405433 </template >
406434 </UTabs >
0 commit comments