feat: log IA con filtro por mes y costo por petición + fix promos sin tarifaPromo
- ShowAiLogs: filtro rápido por mes (YYYY-MM) mutuamente excluyente con rango de fechas
- Resumen IA: nueva card Costo Gemini y Costo Total (Gemini + Whisper)
- Tabla IA: columna Costo COP calcula (tokens/1M × $20.000) para Gemini, costo guardado para Whisper
- PublicChat + TelegramBotService: quita whereHas('tarifaPromo') que ocultaba promos sin tarifa por rol
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
343baa9c14
commit
5c7c8c8a95
@@ -925,7 +925,6 @@ class TelegramBotService
|
||||
|
||||
$promos = Promociones::where('visible', 'true')
|
||||
->where(fn ($q) => $q->whereNull('fecha_limite')->orWhere('fecha_limite', '>=', now()))
|
||||
->whereHas('tarifaPromo', fn ($q) => $q->where('rol_id', $rolId))
|
||||
->with(['tarifaPromo' => fn ($q) => $q->where('rol_id', $rolId)])
|
||||
->get();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user