
2/1/2023
What this post added
This post details the implementation of a GPT-3 application using Next.js for the frontend and a backend API route. It explains the frontend components, state management, and the API call to OpenAI. The backend API route is shown to construct a payload for OpenAI's GPT-3 model and send a POST request. The post also provides historical context, recommending Vercel Functions with Fluid compute and streaming for new projects instead of the Edge Functions approach demonstrated.