OpenAI with Edge Functions

preview_player
Показать описание
Greg Richardson[0], the creator of "Supabase Clippy"[1] joins us as a guest host to show us how we can utilise the OpenAI API[2] in Supabase Edge Functions[3].

## Chapters
00:00 Intro
00:16 Initialise a local Supabase Project
01:27 Import NPM modules in Deno with ESM.SH
01:50 OpenAI APIs
02:17 Import OpenAI in Deno
03:40 Environment variables in Deno
04:40 Generate a completion with OpenAI text-davinci-003
07:30 Invoke the Function
08:30 Handling XMLHttpRequest is not defined in Deno
10:37 Passing a dynamic prompt to OpenAI

Рекомендации по теме
Комментарии
Автор

Thanks for explaining how to get Deno working with VSCode! Most people would have missed that.

amanjha__
Автор

Hey this is off-topic, but I had a question about Clippy. How are you hyperlinking to certain pages in the response? I couldn't uncover where this happens in the process. Thank you for some really inspiring content!

ryandury
Автор

When will we be able to run multiple Edge-Functions at the same time?

maker_aleks
Автор

For those facing a 429 error, make sure to add a payment method to your openAI account, the $18 free tokens expired on 1 April 2023 :(

ambroseliew
Автор

You forgot to tell us how to put that env var in remote supabase

AbubakerMahmoudshangab
Автор

Using deno was a huge mistake. so annoying to work with.

gurpmcullen