feat(ai): refactor AI prompts and add bypass option to Job Positions
This commit is contained in:
@@ -22,6 +22,7 @@ const form = useForm({
|
||||
description: '',
|
||||
requirements: [],
|
||||
ai_prompt: '',
|
||||
ai_bypass_base_prompt: false,
|
||||
tenant_id: '',
|
||||
quiz_ids: [],
|
||||
});
|
||||
@@ -33,6 +34,7 @@ const openModal = (position = null) => {
|
||||
form.description = position.description;
|
||||
form.requirements = position.requirements || [];
|
||||
form.ai_prompt = position.ai_prompt || '';
|
||||
form.ai_bypass_base_prompt = !!position.ai_bypass_base_prompt;
|
||||
form.tenant_id = position.tenant_id || '';
|
||||
form.quiz_ids = position.quizzes ? position.quizzes.map(q => q.id) : [];
|
||||
} else {
|
||||
@@ -204,6 +206,18 @@ const removeRequirement = (index) => {
|
||||
placeholder="Ex: Sois particulièrement attentif à l'expérience sur des projets SaaS à forte charge. Favorise les candidats ayant travaillé en environnement Agile."
|
||||
></textarea>
|
||||
<InputError :message="form.errors.ai_prompt" />
|
||||
|
||||
<div class="mt-4 flex items-center">
|
||||
<label class="relative inline-flex items-center cursor-pointer">
|
||||
<input
|
||||
type="checkbox"
|
||||
v-model="form.ai_bypass_base_prompt"
|
||||
class="sr-only peer"
|
||||
>
|
||||
<div class="w-11 h-6 bg-slate-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-indigo-300 dark:peer-focus:ring-indigo-800 rounded-full peer dark:bg-slate-700 peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all dark:border-gray-600 peer-checked:bg-indigo-600"></div>
|
||||
<span class="ml-3 text-xs font-black uppercase tracking-widest text-indigo-900 dark:text-indigo-100">Ignorer le prompt de base (Utiliser exclusivement ce texte)</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div v-if="quizzes && quizzes.length > 0">
|
||||
|
||||
Reference in New Issue
Block a user