UI: display AI provider used for analysis

This commit is contained in:
jeremy bayse
2026-03-25 18:53:46 +01:00
parent 30918870a2
commit 40c8aa2e5a
2 changed files with 13 additions and 5 deletions

View File

@@ -108,12 +108,17 @@ class AIAnalysisService
Réponds UNIQUEMENT en JSON pur.";
return match ($provider) {
$analysis = match ($provider) {
'openai' => $this->callOpenAI($prompt),
'anthropic' => $this->callAnthropic($prompt),
'gemini' => $this->callGemini($prompt),
default => $this->callOllama($prompt),
};
// Inject provider name for display
$analysis['provider'] = $provider;
return $analysis;
}
protected function callOllama(string $prompt)