This is a demo project that showcases the capabilities of the ChatGpt API. It is built using Vue.js and provides a simple chat interface for interacting with the ChatGpt API.
- Clone the repository and navigate to the project directory:
git clone https://github.com/kovsu/ChatGPT-demo.git
cd chatgpt-demo
- Install dependencies:
npm install
- Create a .env file in the project root and add your OpenAI API key:
VITE_OPENAI_API_KEY=your_api_key_here
Note: If you don't have a Open API key yet, you can sign up for one at api-keys.
Once the app is running, you can start chatting with the ChatGpt API by typing your messages into the input field at the bottom of the screen and pressing Enter. The API will respond with a generated message, which will be displayed in the chat history above.
npm run build
Drop the dist folder to netlify.
This project is licensed under the MIT License. See the LICENSE file for more information.