feat: optimize scan flow with WebP compression and fix admin metrics visibility
This commit is contained in:
@@ -48,7 +48,7 @@ export async function analyzeBottleMistral(base64Image: string, tags?: string[],
|
||||
}
|
||||
|
||||
const client = new Mistral({ apiKey: process.env.MISTRAL_API_KEY });
|
||||
const dataUrl = `data:image/jpeg;base64,${base64Data}`;
|
||||
const dataUrl = `data:image/webp;base64,${base64Data}`;
|
||||
|
||||
const prompt = getSystemPrompt(tags ? tags.join(', ') : 'Keine Tags verfügbar', locale);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user