This project demonstrates how to stream chat completions using the OpenAI API in a SvelteKit application. It includes a simple UI to interact with the OpenAI Chat API and get responses from the model.
These instructions will get you a copy of the project up and running on your local machine.
Before you begin, ensure you have the following installed:
Clone the repository:
git clone https://github.com/NamePending99/OpenAI-Chat-Stream-with-SvelteKit.git
Install npm:
npm install
Create a .env file and define OPENAI_API_KEY:
OPENAI_API_KEY="Your Key Here"
Start the server:
npm run dev