mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 03:15:06 +03:00
## I have read the [CONTRIBUTING.md](https://github.com/supabase/supabase/blob/master/CONTRIBUTING.md) file. YES ## What kind of change does this PR introduce? Edge Functions templates update ## What is the current behavior? An OpenAI template using GPT-3 and the legacy completions API. ## What is the new behavior? Removed - OpenAI text completion template Added - Stream text with AI SDK template - Generate recipes with AI SDK template ## Additional context - CORS inline as examples do not support multiple files yet - Tested both by direct invocation and via `useChat` <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added "Stream text with AI SDK" template for real-time streaming responses with CORS support and robust error handling. * Added "Generate recipes with AI SDK" template for producing validated, structured recipe outputs. * **Refactor** * Replaced the previous OpenAI text completion template with two new AI SDK–based templates to provide streaming and schema-driven content generation. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Kalleby Santos <kallebysantos@Kallebys-MacBook-Pro.local> Co-authored-by: Joshen Lim <joshenlimek@gmail.com>