WisdomGPT-CLI is a command-line application that allows users to have interactive conversations with AI personalities such as Oogway, Rafiki, and William Shakespeare. Each personality provides unique responses based on their character traits, offering wisdom, advice, and entertainment. This application is powered by OpenAI's ChatOpenAI model and uses a typewriter effect to display responses for a more engaging user experience.
-
Choose from three distinct AI personalities: Oogway, Rafiki, or William Shakespeare.
-
Engage in conversations by typing your questions and prompts.
-
Enjoy typewriter-style responses for a more immersive conversation.
Before running WisdomGPT-CLI, make sure you have Node.js and npm (Node Package Manager) installed on your system.
-
Clone the repository:
git clone https://github.com/your-username/WisdomGPT-CLI.git
-
Navigate to the project directory:
cd WisdomGPT-CLI
-
Install the required dependencies:
yarn
-
Rename a
.env.example
to.env
file in the project directory and add your OpenAI API key or any other required environment variables.OPENAI_API_KEY=your_api_key_here
-
Start the WisdomGPT-CLI application:
yarn start
-
Upon starting the application, you will be prompted to choose a personality. Use the arrow keys to select a personality and press Enter.
-
You can then engage in a conversation by typing your questions or prompts after the "You: " prompt.
-
The selected AI personality will respond with wisdom or advice related to their character. Responses will be displayed with a typewriter effect for a more engaging experience.
-
To exit the application, simply type "exit" and press Enter.
You can customize the personalities and their responses by editing the personality
object in the code. Each personality has a name and a corresponding response.
const personality = {
oogway:
"I am Oogway, an old turtle from the Valley of Peace, known for my wisdom in the 'Kung Fu Panda' series. I speak in proverbs and riddles.",
rafiki:
"I am Rafiki, the wise baboon from Disney's 'The Lion King.' Ask me about life lessons, and I'll share my wisdom. Remember, 'The past can hurt, but the way I see it, you can either run from it or learn from it.'",
shakespeare:
"I am William Shakespeare, the famous playwright. Seek my counsel on matters of literature, love, and the human condition. As I once wrote, 'All the world's a stage, and all the men and women merely players.'",
};
You can also adjust the typing speed and other settings in the code to customize the user experience.
- WisdomGPT-CLI uses the [OpenAI GPT-3](# WisdomGPT-CLI
WisdomGPT-CLI is a command-line application that allows users to have interactive conversations with AI personalities such as Oogway, Rafiki, and William Shakespeare. Each personality provides unique responses based on their character traits, offering wisdom, advice, and entertainment. This application is powered by OpenAI's ChatOpenAI model and uses a typewriter effect to display responses for a more engaging user experience.
- Choose from three distinct AI personalities: Oogway, Rafiki, or William Shakespeare.
- Engage in conversations by typing your questions and prompts.
- Enjoy typewriter-style responses for a more immersive conversation.
Before running WisdomGPT-CLI, make sure you have Node.js and npm (Node Package Manager) installed on your system.
-
Clone the repository:
git clone https://github.com/your-username/WisdomGPT-CLI.git
-
Navigate to the project directory:
cd WisdomGPT-CLI
-
Install the required dependencies:
yarn install
-
Create a
.env
file in the project directory and add your OpenAI API key or any other required environment variables.OPENAI_API_KEY=your_api_key_here
-
Start the WisdomGPT-CLI application:
yarn start
-
Upon starting the application, you will be prompted to choose a personality. Use the arrow keys to select a personality and press Enter.
-
You can then engage in a conversation by typing your questions or prompts after the "You: " prompt.
-
The selected AI personality will respond with wisdom or advice related to their character. Responses will be displayed with a typewriter effect for a more engaging experience.
-
To exit the application, simply type "exit" and press Enter.
You can customize the personalities and their responses by editing the personality
object in the code. Each personality has a name and a corresponding response.
const personality = {
oogway:
"I am Oogway, an old turtle from the Valley of Peace, known for my wisdom in the 'Kung Fu Panda' series. I speak in proverbs and riddles.",
rafiki:
"I am Rafiki, the wise baboon from Disney's 'The Lion King.' Ask me about life lessons, and I'll share my wisdom. Remember, 'The past can hurt, but the way I see it, you can either run from it or learn from it.'",
shakespeare:
"I am William Shakespeare, the famous playwright. Seek my counsel on matters of literature, love, and the human condition. As I once wrote, 'All the world's a stage, and all the men and women merely players.'",
};
You can also adjust the typing speed and other settings in the code to customize the user experience.
- WisdomGPT-CLI uses the OpenAI GPT-3.5 turbo model for generating responses.
- It makes use of various Node.js libraries and modules for user input, text formatting, and more.
This project is licensed under the MIT License
This application is for educational and entertainment purposes only. The responses generated by the AI personalities are not a substitute for professional advice, and the application should not be used for critical decision-making.) model for generating responses.
- It makes use of various Node.js libraries and modules for user input, text formatting, and more.
This project is licensed under the MIT License. See the LICENSE file for details.
This application is for educational and entertainment purposes only. The responses generated by the AI personalities are not a substitute for professional advice, and the application should not be used for critical decision-making.