"We-Wingit Drones is a web-based conversational AI chatbot 🤖 that leverages OpenAI's davinci model. It allows users to engage in interactive conversations by inputting messages, and the chatbot responds with contextually relevant replies. The chatbot's responses are generated in real-time, creating a dynamic and engaging user experience. This chatbot has been fine-tuned using custom data, enabling it to provide personalized and domain-specific interactions, making it a versatile tool for various applications."
- Node.js and npm installed on your machine
- OpenAI API key
- Refer to
terminal-commands.md
for fine tunning - Fine tunning dataset example
we-wingit-data_prepared.jsonl
- Clone this repository to your local machine.
- Install the required dependencies using the following command:
- Create a
.env
file in the root directory and add your OpenAI API key: - Replace
davinci:ft-2023
with the desired OpenAI model ID in the code.
- Open the
index.html
file in a web browser. - Enter your message in the input field and submit.
- The chatbot will generate a response based on your input using the OpenAI API.
- The application uses the OpenAI JavaScript SDK to interact with the OpenAI API.
- User input is captured from the input field and used to create a conversation prompt.
- The OpenAI API is called to generate a response based on the conversation prompt.
- The response is displayed in a typewriter-like animation.
Feel free to modify the code to suit your needs. You can change the conversation behavior, and styling, or add more features as desired.
Quick start:
$ npm install
$ npm start
co-author - ShahidaJehangir Head over to https://vitejs.dev/ to learn more about using vite.
Happy Coding!