Commit Graph
32 Commits
Author SHA1 Message Date
LizandroandClaude Sonnet 4.6 44297aa0bb Add AI usage logs for Gemini and Whisper
- Migration + AiUsageLog model with tokens, duration, time, cost fields
- GeminiIntentService and GeminiVisionService log every API call
  with input/output token counts from usageMetadata and response time
- TelegramBotService logs Whisper calls with audio duration (from Telegram)
  and calculates cost at $1/second
- Whisper voice duration now passed from TelegramWebhookController
- Free text in Telegram now tries Gemini intent detection before showing menu
- /chat/ia-logs: Livewire component with summary cards + filterable table
- Whisper connection test button in config panel
- "Logs IA" link added to Chat/Bot nav section

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-14 19:13:59 +00:00
Lizandro Guarnizo 9066229e3a up 2026-06-18 12:56:20 -05:00
Lizandro Guarnizo abd3a90962 up 2026-05-12 20:35:10 -05:00
Lizandro Guarnizo e9948d93f7 up 2026-05-12 20:25:57 -05:00
Lizandro Guarnizo e8f003cfb7 up 2026-05-12 20:22:43 -05:00
Lizandro Guarnizo 67732fbde5 up 2026-05-12 19:50:28 -05:00
Lizandro Guarnizo f61e8005fc chatbot nuevo 2026-04-30 21:32:32 -05:00
Lizandro Guarnizo bbf34d08d0 correo 2026-04-25 14:47:20 -05:00
Lizandro Guarnizo 148fa6b9f9 up 2026-04-24 21:40:10 -05:00
Lizandro Guarnizo 03207775af up 2026-04-18 14:08:14 -05:00
Juan Felipe Duarte a558e393f2 Add rank management feature with CRUD and UI
Introduces a new rank management system including the Rank model, migrations for the ranks table and user IP address, Livewire components for managing and displaying ranks, and related Blade views. Updates navigation and routes to include the new 'Gestión Rangos' section, and enhances the ShareCodeComponent with user data. Also adds a reusable input field component for forms.
2025-10-23 20:28:47 -05:00
Juan Felipe Duarte aa67099449 Add Livewire component to display and save user IP
Introduces ShowSavingIp Livewire component to fetch, display, and save the authenticated user's IP address. Integrates the component into the navigation layout and comments out the unused /ip-test route.
2025-10-18 14:10:11 -05:00
Juan Felipe Duarte 5ea64cac17 Add IP test page with Livewire component
Introduces a new route and controller method for '/ip-test', rendering a new view that includes a Livewire component to display the user's IP address. Updates navigation layout for improved profile display. Adds related Blade and Livewire files.
2025-10-17 14:50:13 -05:00
lizandrogd ffd4731f44 Update web.php 2025-09-03 16:00:10 -05:00
Juan Felipe Duarte c7586cf6cd update 2025-07-31 15:19:22 -07:00
Juan Felipe Duarte 435b10306d Move 'planes' route to editor middleware group
The '/planes' route was moved from the admin middleware group to the editor middleware group, restricting access to users with editor permissions instead of admin.
2025-06-25 16:37:08 -07:00
Juan Felipe Duarte 85d18dc4ff Tarifas y promos por usuario (falta el editar en la vista de tarifas)
Introduces the subvendedor_id field to the tarifa_promos table and updates the TarifaPromo model accordingly. Refactors tarifas and promociones management in ShowTarifas and ShowUsuarios Livewire components, including utility calculation, validation, and UI improvements for managing both regular and promo tarifas.
2025-06-25 16:36:32 -07:00
Juan Felipe Duarte e8050ea19f vista tarifas 2025-06-19 17:54:22 -07:00
Juan Felipe Duarte 9425f519cc roles por subvendedor 2025-06-14 11:46:14 -07:00
Lizandro Guarnizo d1c5dbc90e update 2025-04-14 18:08:49 -05:00
Felipe 6f3d662e6d ruta 2024-06-14 14:45:37 -05:00
Felipe 80c8748182 mantenimiento 2024-04-29 18:21:04 -05:00
Felipe 3ec412ea55 (,), editor, administrador 2024-03-08 16:28:07 -05:00
Felipe accc509652 porfavor hacer la migracion 2024-03-01 10:46:35 -05:00
Felipe df673cbc65 fix 2024-03-01 09:37:40 -05:00
Felipe 6c760652f6 log historial 2024-03-01 08:05:52 -05:00
Felipe a13d666c95 permisos editor - administrador 2024-02-29 15:41:48 -05:00
Felipe f466b38baa logs editor 2024-01-22 13:14:10 -05:00
root 4506a003e8 Mensaje de commit 2023-11-07 22:43:10 +00:00
Felipe fd9afd2183 update 2023-10-23 17:09:05 -05:00
Felipe 41605dd83f log general 2023-10-07 17:31:35 -05:00
lizandrogd 8ce210f27c Initial commit 2023-07-26 08:28:13 -05:00