This project is an AI-powered chatbot that uses OpenAI's GPT-3.5 Turbo model and DALL·E to provide natural language understanding and image generation capabilities. It is designed to respond to text input from users and generate text-based responses as well as create images based on prompts.
- AI Chatbot: The chatbot is powered by OpenAI's GPT-3.5 Turbo model and can engage in natural language conversations with users.
- Image Generation: The project also includes a feature that generates images using DALL·E based on user prompts.
- Logging: The application logs user interactions and bot responses, allowing users to track and review their conversations.
To get started with this project, follow these steps:
git clone https://github.com/your-username/ai-chatbot-image-generator.git
pip install -r requirements.txt
- Create an OpenAI API key from the OpenAI platform.
- Create a Telegram bot and obtain the API token from the BotFather on Telegram.
export TELEGRAM_BOT_TOKEN="your-telegram-bot-token"
export OPENAI_API_KEY="your-openai-api-key"
python app_chatbot.py
- To start a new conversation with the chatbot, send the
/new
command to the bot. It will create a new conversation log for you. - To generate images using DALL·E, send the
/img
command followed by your image prompt. - You can engage in natural language conversations by sending text messages to the bot. The chatbot will respond based on the context of the conversation.
User interactions and bot responses are logged and stored in the logs
directory. You can review your conversations by accessing the log files.
This project was built with the help of the following technologies and libraries:
- OpenAI for the GPT-3.5 Turbo model and DALL·E.
- Python Telegram Bot for the Telegram bot integration.