Commit Graph
34 Commits
Author SHA1 Message Date
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
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 bdd4921795 Add initial implementation for create-chat-conversation function and related configuration files 2026-02-12 11:59:22 -06:00
alexrg 4615da4223 Implement new feature for user authentication and improve error handling 2026-02-12 10:37:41 -06:00
alexrg 484db49654 Refactor code structure for improved readability and maintainability 2026-02-12 10:35:52 -06:00
alexrg 0b72a227f1 Implement code changes to enhance functionality and improve performance 2026-02-12 10:04:42 -06:00
alexrg 801e23a89c Agregar semilla 2026-02-12 10:01:58 -06:00
alexrg 834e884c90 Remove deprecated AI function and related configuration files for cleaner project structure 2026-02-12 09:47:58 -06:00
alexrg e1410c65ec Remove obsolete SQL migration file for cleaner project structure 2026-02-12 09:42:32 -06:00
alexrg ce9c0cf3e6 Remove unused SQL migration files for cleaner project structure 2026-02-12 09:38:48 -06:00
alexrg a3a7fd0de8 Refactor code structure for improved readability and maintainability 2026-02-12 09:38:06 -06:00
alexrg e7acf50b82 Remove SQL insert statements for faculties and careers from the database schema. 2026-02-12 09:37:40 -06:00
alexrg c33089726c Establecer permisos de funciones y eliminar funciones no utilizadas en las migraciones 2026-02-12 09:37:03 -06:00
alexrg 7755246e8b Agregar supabase/snippets al archivo .gitignore 2026-02-12 09:36:59 -06:00
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
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 79e66aed63 Update deno.lock to include additional dependencies and specify versions for improved compatibility 2026-01-14 10:34:13 -06:00
alexrg 15b5fac951 Add launch and settings configuration for VSCode, remove unused bun.lock, and implement AI function with structured output handling and tests 2026-01-14 10:31:46 -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 411e0f2154 Add deno.lock file and refactor AI function to streamline OpenAI integration 2026-01-13 11:10:41 -06:00
alexrg f037e31896 Refactor Supabase function to simplify request handling and remove unused code 2026-01-13 09:49:39 -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