Simple practice project to demonstrate the use of OpenAI's API with Svelte. Built with a form of a quiz chat that relies on AI to create questions and answers for a defined topic. Can be used for educational purposes or just for fun.
- Customizable API key.
- Customizable topic.
- Customizable system prompt.
- Chat reset.
- Chat history.
- Parsing of choices to clickable buttons.
- Clone the repository
- Run
npm install
- Run
npm run dev
- Open your browser and go to
http://localhost:5173
- Enter the API key and the topic.
- Start the quiz.
Since I know to code, but have no priori knowledge on using Svelte:
- ChatGPT
- Copilot