feat: update model selection for image attachments in AI requests

This commit is contained in:
2025-10-04 02:31:30 -05:00
parent d1264d6824
commit e2770f70dc

View File

@@ -472,7 +472,7 @@ export class AIService {
// Para imágenes, usar gemini-2.5-flash (soporta multimodal) // Para imágenes, usar gemini-2.5-flash (soporta multimodal)
// Para solo texto, usar gemini-2.5-flash-preview-09-2025 // Para solo texto, usar gemini-2.5-flash-preview-09-2025
const modelName = hasImages && imageAttachments.length > 0 const modelName = hasImages && imageAttachments.length > 0
? "gemini-2.5-flash" ? "gemini-2.5-flash-image"
: "gemini-2.5-flash-preview-09-2025"; : "gemini-2.5-flash-preview-09-2025";
const model = this.genAI.getGenerativeModel({ const model = this.genAI.getGenerativeModel({