Commit Graph

315 Commits

Author SHA1 Message Date
Guillermo.Arrieta 38e1488c8c Se añade un event listener que loggea cuando se va a apagar la función
Deploy Function / deploy (push) Successful in 22s
Deploy Migrations to Production / deploy (push) Successful in 11s
2026-02-19 13:06:34 -06:00
Guillermo.Arrieta a028fd459f hotfix 2: archivo de migración sobrante
Deploy Function / deploy (push) Successful in 20s
Deploy Migrations to Production / deploy (push) Successful in 14s
2026-02-18 17:50:26 -06:00
Guillermo.Arrieta db3355f8ca hotfix: nombre de migración sincronizado con BDD remota
Deploy Function / deploy (push) Successful in 21s
Deploy Migrations to Production / deploy (push) Failing after 12s
2026-02-18 17:45:34 -06:00
Guillermo.Arrieta 5c27e61ce4 Fue arreglado trigger de trg_planes_estudio_log_cambios y se le hizo squash a las migraciones de la BDD
Deploy Function / deploy (push) Successful in 21s
Deploy Migrations to Production / deploy (push) Successful in 9s
2026-02-18 16:29:27 -06:00
alexrg 4b0b8e6a95 Merge branch 'main' of https://github.lci.ulsa.mx/AlexRG/genesis-2
Deploy Function / deploy (push) Successful in 21s
Deploy Migrations to Production / deploy (push) Successful in 10s
2026-02-18 09:20:56 -06:00
alexrg ef42d74fea fix: remove conversation_id update logic from cambios_plan trigger 2026-02-18 09:20:54 -06:00
alexrg feaad85fda Actualizar supabase/functions/create-chat-conversation/lib/cors.ts
Deploy Function / deploy (push) Successful in 30s
Deploy Migrations to Production / deploy (push) Successful in 10s
2026-02-17 21:59:33 +00:00
alexrg 21469b3b4c Actualizar supabase/functions/create-chat-conversation/lib/cors.ts
Deploy Function / deploy (push) Successful in 32s
Deploy Migrations to Production / deploy (push) Successful in 9s
2026-02-17 21:55:45 +00:00
alexrg 329faac742 fix: remove unnecessary constraint from planes_estudio table
Deploy Function / deploy (push) Successful in 22s
Deploy Migrations to Production / deploy (push) Successful in 9s
2026-02-17 11:31:12 -06:00
alexrg fed348e214 fix: update query text and similarity values in embeddings example
Deploy Function / deploy (push) Successful in 20s
Deploy Migrations to Production / deploy (push) Successful in 9s
2026-02-17 11:28:29 -06:00
alexrg 63e0ea7fbf feat: add OpenAI embeddings functionality and update Supabase migration
Deploy Function / deploy (push) Has been cancelled
Deploy Migrations to Production / deploy (push) Has been cancelled
2026-02-17 11:28:00 -06:00
alexrg 6dc3167bc4 Merge pull request 'Actualizar supabase/functions/create-chat-conversation/lib/plan.ts' (#30) from hot-fix/ningun-campo-si-vacío into main
Deploy Function / deploy (push) Successful in 21s
Deploy Migrations to Production / deploy (push) Successful in 11s
Reviewed-on: AlexRG/genesis-2#30
2026-02-16 23:36:08 +00:00
alexrg c28274334a Actualizar supabase/functions/create-chat-conversation/lib/plan.ts
fix #29
2026-02-16 23:35:10 +00:00
Guillermo.Arrieta a92fc6ac26 hotfix: prompt de formato arreglado para evitar que se muestren cosas como "\n" en el texto final
Deploy Function / deploy (push) Successful in 1m21s
Deploy Migrations to Production / deploy (push) Successful in 14s
2026-02-16 17:25:38 -06:00
Guillermo.Arrieta 5a23be9961 Se añadieron indicaciones de formato en los prompts para generación de plan o de asignatura
Deploy Function / deploy (push) Successful in 39s
Deploy Migrations to Production / deploy (push) Successful in 11s
close #26
2026-02-16 19:52:21 +00:00
Guillermo.Arrieta e64c0de529 Se usan modelos de openai a partir de variables de entorno 2026-02-16 19:52:21 +00:00
alexrg 34162c6038 Eliminar .gitea/workflows/ci.yaml
Deploy Function / deploy (push) Successful in 44s
Deploy Migrations to Production / deploy (push) Successful in 13s
2026-02-16 19:09:26 +00:00
alexrg e7d7f553a3 Merge branch 'main' of https://github.lci.ulsa.mx/AlexRG/genesis-2
Deploy Function / deploy (push) Successful in 32s
Deploy Migrations to Production / deploy (push) Successful in 11s
2026-02-16 11:28:16 -06:00
alexrg 0a4fc51bf7 feat: add definitions for perishables and origin schemas in new notebook 2026-02-16 11:28:13 -06:00
alexrg af945cfa69 Actualizar .gitea/workflows/ci.yaml
Deploy Function / deploy (push) Successful in 32s
Deploy Migrations to Production / deploy (push) Successful in 11s
2026-02-16 16:38:20 +00:00
alexrg afd10eaaf7 Actualizar .gitea/workflows/ci.yaml
Deploy Function / deploy (push) Successful in 53s
Deploy Migrations to Production / deploy (push) Successful in 12s
2026-02-16 16:36:58 +00:00
alexrg 13cf57505f Merge branch 'main' of https://github.lci.ulsa.mx/AlexRG/genesis-2
Deploy Function / deploy (push) Successful in 26s
Deploy Migrations to Production / deploy (push) Successful in 11s
2026-02-13 16:12:26 -06:00
alexrg 9d25203ef6 fix: update execution counts and improve message parsing in chat conversation functions 2026-02-13 16:12:23 -06:00
Guillermo.Arrieta 7a81e448f4 hotfix: se cambió el estado default de las asignaturas y se arregló un error donde se requería código de asignatura no nulo
Deploy Function / deploy (push) Successful in 44s
Deploy Migrations to Production / deploy (push) Successful in 14s
2026-02-13 12:39:14 -06:00
alexrg d724bda6f5 Actualizar database-types.ts
CI / test (pull_request) Failing after 3m34s
2026-02-13 16:28:14 +00:00
alexrg 3d407c5b91 Merge branch 'main' of https://github.lci.ulsa.mx/AlexRG/genesis-2
Deploy Function / deploy (push) Successful in 24s
Deploy Migrations to Production / deploy (push) Successful in 11s
2026-02-13 10:26:45 -06:00
alexrg 2d13995d5d fix: update type generation script and modify database types structure 2026-02-13 10:26:43 -06:00
alexrg b583f4c0fd Merge pull request 'Corregir para que los mensajes se archiven solo con asistente y usuario' (#24) from issue/7-hacer-la-edge-function-que-te-d-sugerencias into main
Deploy Function / deploy (push) Successful in 25s
Deploy Migrations to Production / deploy (push) Successful in 15s
Reviewed-on: AlexRG/genesis-2#24
2026-02-13 16:18:23 +00:00
alexrg b7720496cf feat: update conversation archiving to store structured message data
CI / test (pull_request) Failing after 7s
2026-02-13 10:17:06 -06:00
alexrg febcce85bb Merge pull request 'Que te dé sugerencias' (#23) from issue/7-hacer-la-edge-function-que-te-d-sugerencias into main
Deploy Function / deploy (push) Successful in 27s
Deploy Migrations to Production / deploy (push) Successful in 16s
Reviewed-on: AlexRG/genesis-2#23
2026-02-13 15:32:53 +00:00
alexrg a70f0c52a9 feat: implement create-chat-conversation function with OpenAI integration and Supabase support
CI / test (pull_request) Failing after 8s
- Added CORS handling for the create-chat-conversation function.
- Implemented health check endpoint for the function.
- Created endpoints for managing conversations and messages with OpenAI.
- Added error handling and response formatting for better API usability.
- Introduced utility functions for environment variable management and Supabase client creation.
- Enhanced schema handling for structured responses from OpenAI.
- Implemented conversation archiving and retrieval logic.
2026-02-13 09:31:58 -06:00
alexrg f441976a7a Merge branch 'fix/borrar-triggers'
Deploy Function / deploy (push) Successful in 33s
Deploy Migrations to Production / deploy (push) Successful in 15s
2026-02-13 08:39:18 -06:00
alexrg cfbd0cebbb Refactor conversation handling in the OpenAI integration notebook
- Updated execution counts for code cells to reflect the correct order of execution.
- Modified the structure of conversation-related database interactions to align with new naming conventions.
- Enhanced the conversation creation process by including additional metadata and improving the response handling.
- Implemented better error handling and logging for conversation archiving and message retrieval.
- Adjusted the schema definitions for input and output to ensure compatibility with the latest API changes.
2026-02-13 08:38:43 -06:00
Guillermo.Arrieta f29465958a errores de imports
Deploy Function / deploy (push) Successful in 37m53s
Deploy Migrations to Production / deploy (push) Successful in 15s
2026-02-12 17:40:22 -06:00
Guillermo.Arrieta 334800fab7 Merge pull request 'Generación de asignaturas con sugerencias' (#22) from acad-ia-2/issue/89-sugerencias-asignaturas into main
Deploy Function / deploy (push) Failing after 0s
Deploy Migrations to Production / deploy (push) Failing after 0s
Reviewed-on: AlexRG/genesis-2#22
2026-02-12 23:30:00 +00:00
Guillermo.Arrieta 9981b30260 feat: update subject suggestion guidelines and remove obsolete migration
CI / test (pull_request) Failing after 8s
- Enhanced the subject suggestion guidelines to specify that descriptions must not exceed 200 characters.
- Deleted the migration file for adding conversation_id to asignaturas and the associated view, as it is no longer needed.
2026-02-12 16:45:38 -06:00
Guillermo.Arrieta 2ff587d639 feat: opcion de update a asignaturas ya creadas para ponerles la información generada con IA
- Created a new enum type "estado_asignatura" with values 'borrador', 'revisada', 'aprobada', and 'generando'.
- Added a new column "estado" to the "asignaturas" table, defaulting to 'generando'.
- Implemented a trigger function to log changes in the "planes_estudio" table, capturing inserts, updates, and deletes.
- Updated the logging mechanism to track changes in various fields, including JSONB data.
- Removed the "asignaturas" table from the supabase_realtime publication.
- Added a script for generating TypeScript types from the local Supabase database.
2026-02-12 16:00:39 -06:00
Guillermo.Arrieta 48ab986cb8 Actualizar esquema de validación: limitar la descripción a 200 caracteres y reducir la cantidad máxima de sugerencias a 15 2026-02-12 16:00:00 -06:00
Guillermo.Arrieta 24b6338074 Implementar validación y generación de sugerencias de asignaturas con integración a Supabase 2026-02-12 16:00:00 -06:00
Guillermo.Arrieta b1d431a683 Generación con IA funcional 2026-02-12 16:00:00 -06:00
Guillermo.Arrieta ce5360a5c2 wip 2026-02-12 16:00:00 -06:00
Guillermo.Arrieta 93c7f11621 nueva edge function para la generación de sugerencais de asignaturas con IA 2026-02-12 16:00:00 -06:00
alexrg a9b77cd792 Actualizar .gitea/workflows/production.yaml
Deploy Function / deploy (push) Successful in 20s
Deploy Migrations to Production / deploy (push) Failing after 0s
2026-02-12 21:27:23 +00:00
alexrg 4365303c49 Actualizar .gitea/workflows/production.yaml
Deploy Function / deploy (push) Successful in 19s
Deploy Migrations to Production / deploy (push) Failing after 11s
2026-02-12 21:21:35 +00:00
alexrg e68c876944 Merge pull request 'Add trigger removal and logging function for cambios_planes_estudio' (#21) from fix/borrar-triggers into main
Deploy Function / deploy (push) Successful in 20s
Deploy Migrations to Production / deploy (push) Has been cancelled
Reviewed-on: AlexRG/genesis-2#21
2026-02-12 21:16:59 +00:00
alexrg 53d9ab2876 Add trigger removal and logging function for cambios_planes_estudio
CI / test (pull_request) Failing after 2m19s
2026-02-12 15:13:19 -06:00
alexrg ada4f3254c Merge branch 'main' of https://github.lci.ulsa.mx/AlexRG/genesis-2
Deploy Function / deploy (push) Successful in 18s
Deploy Migrations to Production / deploy (push) Successful in 13s
2026-02-12 15:03:28 -06:00
alexrg e78863a636 Agregar supabase/snippets al archivo .gitignore 2026-02-12 15:03:25 -06:00
alexrg e8a0f1d082 Actualizar .gitea/workflows/production.yaml
Deploy Function / deploy (push) Successful in 20s
Deploy Migrations to Production / deploy (push) Successful in 14s
2026-02-12 20:22:36 +00:00
alexrg 90cfad6f76 Añadir .gitea/workflows/production.yaml
Deploy Function / deploy (push) Successful in 18s
Deploy Migrations to Production / deploy (push) Failing after 15s
2026-02-12 20:19:17 +00:00