/chatgpt

ChatGPT style web app(alpine.js) using Netlify Edge Functions Streaming

Primary LanguageHTMLMIT LicenseMIT

chatgpt-alpinejs-netlify-openai

ChatGPT style web app(alpine.js) using Netlify Edge Functions Streaming

Setup:

  1. Clone this repo
  2. Get OpenAI API Key (You'll need an OpenAI account)
  3. Connect your repo in Netlify (You'll need a Netlify account)
  4. Setup a site in Netlify by connecting to your repo
  5. Before you build, setup the env variable OPENAI_API_KEY for your site
  6. That's all! Enjoy the streaming chat experience.

Note: This demo is built to show the power of Netlify Edge Functions and how easy its to build streaming applications. It was great using ChatGPT-4 to help me with initial set of code, though I did a good bit of improvisation along the way. Please do share use cases you're building with generative AI APIs.