Welcome to the Launch OpenAI Chatbot Demo App! This app is a simple yet powerful demonstration of GPT-3.5 and GPT-4 models by OpenAI. It enables you to create engaging and context-injected chat experiences. This README will guide you through setting up and running the app on your local machine.
Basic | Yoda | Cowboy |
---|---|---|
- Node.js (v12.0.0 or higher)
- OpenAI API Key
- Clone this repository
- Install dependencies (
pnpm install
etc.) - Add your OpenAI API key to
.env.local
(see example file) pnpm dev
to run the app on localhost
A simple proof of concept of a GPT chat component with context-injection. By default, the bot will assume a persona as defined in a customizable system prompt.
-- /src/createSystemPrompt.ts
is where we do some prompt engineering
-- /src/useChat.tsx
facilitates API communications and state handling
-- /src/Chat.tsx
React component with useChat hook