impmementation de gemini vertex & maistral ai
This commit is contained in:
@@ -136,7 +136,7 @@ const handleQuoteOcr = async () => {
|
||||
let fileToSend = form.quote_file;
|
||||
const isPdf = /\.pdf$/i.test(form.quote_file.name);
|
||||
|
||||
if (selectedModel.value === 'ollama' && isPdf) {
|
||||
if ((selectedModel.value === 'ollama' || selectedModel.value === 'mistral') && isPdf) {
|
||||
fileToSend = await convertPdfBlobToImageFile(form.quote_file);
|
||||
}
|
||||
|
||||
@@ -408,11 +408,12 @@ const demandeurs = ['Jérémy', 'Sylvain', 'Kévin'];
|
||||
/>
|
||||
<div v-if="form.quote_file" class="mt-2 flex flex-col gap-2">
|
||||
<!-- Sélecteur de modèle -->
|
||||
<div v-if="ollamaAvailable" class="flex items-center gap-2 bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 rounded-lg px-2.5 py-1.5 shadow-sm">
|
||||
<div class="flex items-center gap-2 bg-slate-50 dark:bg-slate-950 border border-slate-200 dark:border-slate-800 rounded-lg px-2.5 py-1.5 shadow-sm">
|
||||
<span class="text-xxs text-slate-500 dark:text-slate-400">Modèle OCR :</span>
|
||||
<select v-model="selectedModel" class="text-xxs font-semibold border-0 p-0 pr-6 focus:ring-0 bg-transparent text-slate-700 dark:text-slate-300">
|
||||
<option value="gemini">Gemini API</option>
|
||||
<option value="ollama">GLM-OCR (Ollama)</option>
|
||||
<option value="mistral">Mistral AI</option>
|
||||
<option v-if="ollamaAvailable" value="ollama">GLM-OCR (Ollama)</option>
|
||||
</select>
|
||||
</div>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user