Commit Graph

25 Commits

Author SHA1 Message Date
roberto.silva 2dbe00a670 se agrega wh en asignaturas y se guardan campos correctamente y ademas se corrige incidencia Agregar contexto de la asignatura al chat #55 2026-03-10 16:12:43 -06:00
roberto.silva 16092e94a3 Chats de ia en segundo plano para asignaturas
fix #51
2026-03-09 16:27:27 -06:00
roberto.silva 749ec7a962 se agrega wh 2026-03-06 11:06:56 -06:00
roberto.silva d844698ffc Chats de la IA en segundo plano se agregan funciones para asignatura
fix #42
2026-03-06 08:44:41 -06:00
roberto.silva 3759f7673a Corregir Edge Function
fix #36
2026-03-04 09:13:16 -06:00
roberto.silva 44919f074d Corregir Edge Function
fix#36
2026-02-25 14:42:42 -06:00
alexrg 824db85305 fix: simplify refusal handling in message response by removing is-refusal field
Deploy Function / deploy (push) Successful in 22s
Deploy Migrations to Production / deploy (push) Successful in 13s
2026-02-25 10:04:08 -06:00
alexrg 738d3970e3 fix: ensure campos is always an array in pickSchemaFields function
Deploy Function / deploy (push) Successful in 22s
Deploy Migrations to Production / deploy (push) Successful in 11s
2026-02-25 08:03:00 -06:00
alexrg 009e65d327 fix: remove required fields and additional properties from message schema
Deploy Function / deploy (push) Successful in 24s
Deploy Migrations to Production / deploy (push) Successful in 10s
2026-02-24 16:12:22 -06:00
alexrg e43927f1b1 fix: add required fields and restrict additional properties in message schema
Deploy Function / deploy (push) Successful in 22s
Deploy Migrations to Production / deploy (push) Successful in 11s
2026-02-24 15:28:56 -06:00
alexrg e906fe258c fix: remove unnecessary JSON.stringify for appended parameter in message handling
Deploy Function / deploy (push) Successful in 20s
Deploy Migrations to Production / deploy (push) Successful in 9s
2026-02-24 15:26:15 -06:00
alexrg 44c86cfa13 fix: rename parameter from p_appended to p_append in message handling
Deploy Function / deploy (push) Successful in 20s
Deploy Migrations to Production / deploy (push) Successful in 10s
2026-02-24 15:24:50 -06:00
alexrg 7ee9944ab5 feat: add @toon-format/toon dependency and integrate into OpenAI notebooks
- Updated deno.lock and package.json to include @toon-format/toon@^2.1.0.
- Modified background-openai.ipynb to handle error responses and adjust execution counts.
- Enhanced definitions-openai.ipynb to include additional metadata for perishables and origen schemas.
- Refactored embeddings-openai.ipynb to improve error handling and output formatting.
- Updated create-chat-conversation function to append messages and responses to conversations.
- Added SQL functions for appending conversation data to the database.
2026-02-24 15:20:19 -06:00
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 e64c0de529 Se usan modelos de openai a partir de variables de entorno 2026-02-16 19:52:21 +00:00
alexrg 9d25203ef6 fix: update execution counts and improve message parsing in chat conversation functions 2026-02-13 16:12:23 -06: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 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 bdd4921795 Add initial implementation for create-chat-conversation function and related configuration files 2026-02-12 11:59:22 -06:00
alexrg 484db49654 Refactor code structure for improved readability and maintainability 2026-02-12 10:35:52 -06:00
Guillermo.Arrieta 7f9226ce38 hotfix de importacion
Deploy Function / deploy (push) Successful in 21s
2026-02-05 16:13:55 -06:00
Guillermo.Arrieta 00f0bddf1c Arreglo de reverts 2026-02-05 16:00:07 -06:00
alexrg b1a90858dc revert 1af0358e65
Deploy Function / deploy (push) Failing after 43s
revert Merge pull request 'REFACTOR OpenAI service to manage env and convo creation' (#12) from issue/9-hacer-una-funcin-que-inserte-el-id-de-conversacin into main

Reviewed-on: AlexRG/genesis-2#12
2026-02-05 20:41:28 +00: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