UI: display AI provider used for analysis
This commit is contained in:
@@ -108,12 +108,17 @@ class AIAnalysisService
|
|||||||
|
|
||||||
Réponds UNIQUEMENT en JSON pur.";
|
Réponds UNIQUEMENT en JSON pur.";
|
||||||
|
|
||||||
return match ($provider) {
|
$analysis = match ($provider) {
|
||||||
'openai' => $this->callOpenAI($prompt),
|
'openai' => $this->callOpenAI($prompt),
|
||||||
'anthropic' => $this->callAnthropic($prompt),
|
'anthropic' => $this->callAnthropic($prompt),
|
||||||
'gemini' => $this->callGemini($prompt),
|
'gemini' => $this->callGemini($prompt),
|
||||||
default => $this->callOllama($prompt),
|
default => $this->callOllama($prompt),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Inject provider name for display
|
||||||
|
$analysis['provider'] = $provider;
|
||||||
|
|
||||||
|
return $analysis;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function callOllama(string $prompt)
|
protected function callOllama(string $prompt)
|
||||||
|
|||||||
@@ -365,12 +365,15 @@ const runAI = async () => {
|
|||||||
<div class="bg-white dark:bg-slate-800 rounded-2xl shadow-sm border border-slate-200 dark:border-slate-700 p-8 overflow-hidden relative">
|
<div class="bg-white dark:bg-slate-800 rounded-2xl shadow-sm border border-slate-200 dark:border-slate-700 p-8 overflow-hidden relative">
|
||||||
<div class="flex flex-col md:flex-row md:items-center justify-between gap-6 mb-8">
|
<div class="flex flex-col md:flex-row md:items-center justify-between gap-6 mb-8">
|
||||||
<div>
|
<div>
|
||||||
<h4 class="text-xl font-bold flex items-center gap-2">
|
<h3 class="font-bold text-lg mb-4 flex items-center gap-3">
|
||||||
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-indigo-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-indigo-500" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
||||||
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9l-.707.707M12 21v-1m4.243-4.243l-.707-.707m2.828-9.9l-.707.707" />
|
||||||
</svg>
|
</svg>
|
||||||
Intelligence Artificielle
|
Analyse IA complète
|
||||||
</h4>
|
<span v-if="aiAnalysis?.provider" class="text-xs px-2 py-0.5 rounded-full bg-slate-100 text-slate-500 uppercase font-bold border border-slate-200">
|
||||||
|
{{ aiAnalysis.provider }}
|
||||||
|
</span>
|
||||||
|
</h3>
|
||||||
<p class="text-xs text-slate-400 mt-1 uppercase font-bold tracking-widest">Choisir l'IA pour l'analyse du matching</p>
|
<p class="text-xs text-slate-400 mt-1 uppercase font-bold tracking-widest">Choisir l'IA pour l'analyse du matching</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user