This is a simple chat bot using sveltekit forms, bind, POST, OpenAi API, and GPT-4o-mini
Create an account here: OpenAI
Store your api key in a .env file in the project root as OPENAI_API_KEY=
#.env
OPENAI_API_KEY=YOUR_API_KEY_GOES_HERE
Once you've stored your API key and installed dependencies with npm install
(or pnpm install
or yarn
), start a development server:
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open