This project is a command-line interface (CLI) tool that interacts with OpenAI's API to provide various functionalities such as chat, image generation, and question-answering.
- Chatbot: Start a chatbot session.
- Image Generator: Generate images based on user descriptions.
- Question and Answer: Answer questions with optional tags.
- Node.js (v18 or higher)
- npm (v6 or higher)
-
Clone the repository:
git clone https://github.com/yourusername/ai-cli-tool.git cd ai-cli-tool -
Install the dependencies: npm install
-
Create a
.envfile in the root directory and add your OpenAI API key: OPENAI_API_KEY="your_openai_api_key_here" OPEN_AI_MODEL="gpt-4o"
- Chatbot
termAi chat
`termAi img`
`termAi qa -f <the path of the file> -q <question here>`
|> Must me string
- dotenv: Loads environment variables from a .env file.
- ora: Elegant terminal spinner.
- cli-spinners: Collection of CLI spinners.
- chalk: Terminal string styling.
- yargs: Command-line argument parser.
- marked: Markdown parser.
- marked-terminal: Terminal renderer for marked.
- cli-html: Render HTML in the terminal.
Chatbot initialized. Type "exit" to quit.
You: Hello
⠇ Loading...
Bot: Hello! How can I assist you today?
You: exit```
This README file provides a comprehensive overview of your project, including its features, prerequisites, installation steps, usage instructions, project structure, dependencies, an example usage, and the license. Feel free to customize it further based on your specific project details and requirements.