Commit Graph

8 Commits

Author SHA1 Message Date
alexrg 9be3e1ef13 Actualizar supabase/functions/_shared/openai-service.ts
Deploy Function / deploy (push) Successful in 24s
Deploy Migrations to Production / deploy (push) Successful in 10s
2026-03-10 21:45:05 +00:00
alexrg d92308f946 Actualizar supabase/functions/_shared/openai-service.ts
Deploy Migrations to Production / deploy (push) Has been cancelled
Deploy Function / deploy (push) Has been cancelled
2026-03-10 21:44:53 +00:00
Guillermo.Arrieta 288278ea6c feat: update AI subject generation and handling responses
- Refactor AIGenerateSubjectInput type to include optional fields for updates.
- Add handling for "asignaturas" responses in OpenAI webhook.
- Implement crear.ts for creating/updating subjects based on AI responses.
- Update tests to validate OpenAI file uploads instead of storage uploads.
2026-02-27 12:07:06 -06:00
Guillermo.Arrieta 527f3aa56f Se inserta el plan de estudios y se mandan crear los datos generales en segundo plano, y la edge funcion de openai-webhook-responses recibe la respuesta para actualizar el plan de estudio con los datos generales 2026-02-25 17:39:09 -06:00
Guillermo.Arrieta 7660d2c3a0 inicio de funcion de generación de asignatura 2026-02-05 15:53:23 -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
Guillermo.Arrieta 8ef3f24652 Versión funcional de creación de plan de estudios con IA 2026-01-22 14:32:22 -06:00