Commit Graph

24 Commits

Author SHA1 Message Date
alexrg 0b7d2e83d7 Refactor OpenAI service to manage env and convo creation
- Add fromEnv factory to OpenAIService to handle env vars
- Move conversation creation into OpenAIService
- Update create- chat-conversation function to use new OpenAIService
  methods
- Add CORS headers to responses
2026-02-03 09:38:56 -06:00
alexrg e024057e47 Add create-chat-conversation function and related configurations 2026-02-03 09:26:30 -06:00
Guillermo.Arrieta e1d865e6c3 posible solución a issue #60
Deploy Function / deploy (push) Successful in 21s
2026-01-30 12:24:59 -06:00
Guillermo.Arrieta fdc8b688b3 generacion de plane exitosa y cambios en BDD
Deploy Function / deploy (push) Successful in 24s
2026-01-22 14:34:26 -06:00
Guillermo.Arrieta 8ef3f24652 Versión funcional de creación de plan de estudios con IA 2026-01-22 14:32:22 -06:00
Guillermo.Arrieta f15ab86e7f wip 2026-01-22 14:31:47 -06:00
Guillermo.Arrieta 1727b09bfb Función de ai-structured simplificada + tipado de la entrada 2026-01-22 14:31:47 -06:00
Guillermo.Arrieta 7a29f1a87d Antes de cambio de ai-structured 2026-01-22 14:30:53 -06:00
Guillermo.Arrieta 3170ed6975 Primera version de ai-generate-plan 2026-01-22 14:30:53 -06:00
Guillermo.Arrieta d5a095876e wip 2026-01-22 14:30:53 -06:00
Guillermo.Arrieta bb734cddd8 wip 2026-01-22 14:30:52 -06:00
Guillermo.Arrieta cd615d1f6e backup de base de datos 2026-01-22 13:52:12 -06:00
alexrg c51281856a feat: update deno.json and deno.lock to include OpenAI and Zod imports; add sample PDF file
- Added imports for OpenAI and Zod in deno.json
- Updated deno.lock with new versions for OpenAI and Zod
- Introduced a sample PDF file demonstrating bookmark functionality
- Refactored ai-structured function to improve error handling and logging
- Updated tests to reflect changes in input structure and expected output
2026-01-19 16:12:17 -06:00
alexrg 1d5d4b6a4e fix: update database queries to use 'template' instead of 'template_id' and adjust related references in ai_generate_plan function 2026-01-16 14:51:42 -06:00
alexrg 6c2faa97f1 test: enhance ai_generate_plan test for structured data validation and normalization 2026-01-16 11:04:28 -06:00
alexrg e321935286 feat: initialize database schema with essential tables, types, and functions for academic management system
- Created multiple tables including 'asignaturas', 'carreras', 'planes_estudio', and others to manage academic entities.
- Defined various ENUM types for categorizing academic roles, task statuses, and notification types.
- Implemented triggers and functions for automatic timestamp updates and validation of cycle numbers in subjects.
- Established foreign key relationships to maintain data integrity across tables.
- Added necessary extensions for enhanced functionality, including 'pgsodium', 'pg_graphql', and 'pg_stat_statements'.
2026-01-16 10:53:32 -06:00
alexrg 81262d706a Refactor input normalization and enhance logging for OpenAI function 2026-01-14 15:25:14 -06:00
alexrg 0d2345a6d6 Add Deno configuration and update dependencies for OpenAI and Supabase 2026-01-14 14:24:49 -06:00
alexrg 3d72e8bbf8 Add initial Supabase configuration and schema setup
- Created connection URL for PostgreSQL in pooler-url file.
- Added PostgreSQL version information in postgres-version file.
- Included project reference in project-ref file.
- Specified REST API version in rest-version file.
- Documented storage migration details in storage-migration file.
- Defined storage version in storage-version file.
- Updated ai-structured function to include logging for EDGE function.
- Established a comprehensive schema.sql file with multiple tables, types, functions, triggers, and permissions for the application.
2026-01-14 14:09:49 -06:00
alexrg 5917adbe75 Update dependencies in deno.lock and add tests for ai-structured function 2026-01-14 10:30:46 -06:00
alexrg 930556d862 Add configuration files and update dependencies for Supabase functions 2026-01-14 09:28:38 -06:00
alexrg 4fc445db61 Refactor dependency management and improve error handling in Supabase functions 2026-01-13 15:35:43 -06:00
alexrg 5ab3c6ca5a Add TypeScript definitions for Supabase edge runtime 2026-01-13 09:40:07 -06:00
alexrg c0599e30ab Add initial project files including .gitignore, README, package.json, and TypeScript configuration
- Created .gitignore to exclude unnecessary files
- Added README.md with installation and usage instructions
- Initialized package.json with dependencies and configurations
- Set up tsconfig.json for TypeScript compiler options
- Implemented basic index.ts file for logging
- Added Supabase function structure in ai-structured directory
- Created test files for user authentication and function invocation
2026-01-13 09:39:03 -06:00