262 Commits

Author SHA1 Message Date
5649d67d78 feat: Add missing COPY commands for Python packages in Dockerfile 2025-04-16 22:52:24 +07:00
858c938a8b refactor: Simplify Dockerfile by removing non-root user setup and adjusting paths for Python package installation 2025-04-16 22:38:15 +07:00
9dab6d4068 fix: Downgrade Python version in Dockerfile from 3.14 to 3.13.3 for compatibility 2025-04-16 22:03:33 +07:00
d0a6743d80 feat: Update model references to include 'openai/' prefix and improve Dockerfile for better caching and user permissions 2025-04-16 21:58:15 +07:00
daeff6d997 fix: Correct logs directory path in Dockerfile 2025-04-16 17:13:58 +07:00
f295e7b4db feat: Copy logs directory to the application runtime in Dockerfile 2025-04-16 16:58:31 +07:00
80991a9e29 feat: Update .gitignore to exclude logs and add log files for code execution, interpreter, and Discord bot 2025-04-16 16:35:46 +07:00
85ec2bda91 feat: Add additional OpenAI GPT-4.1 model options to MODEL_OPTIONS 2025-04-16 16:20:39 +07:00
3422e5352e feat: Add image editing and enhancement functionalities
- Implemented `edit_image` method for background removal from images.
- Added `enhance_prompt` method to generate improved versions of text prompts.
- Introduced `image_to_text` method for converting images to text descriptions.
- Created `upscale_image` method to enhance image resolution.
- Developed `photo_maker` method for generating images based on prompts and reference images.
- Added `generate_image_with_refiner` method for high-quality image generation using a refiner model.
- Updated OpenAI function definitions to include new image processing capabilities.
- Enhanced message processing to handle image URLs and descriptions appropriately.
2025-04-16 16:19:11 +07:00
Vu Quoc Anh
cc1f884a2f Update Dockerfile 2025-03-31 22:10:45 +07:00
Vu Quoc Anh
a90004614e Update Dockerfile 2025-03-31 22:02:06 +07:00
74cc29e376 feat: Remove caching configuration from Docker build steps for amd64 and arm64 2025-03-28 13:57:09 +07:00
921d057602 feat: Refactor Dockerfile to improve cleanup commands and ensure safe copying of binary files 2025-03-28 13:49:02 +07:00
382ea8a4d7 feat: Enhance Dockerfile by adding missing build dependencies and improving cleanup commands for Python packages 2025-03-28 12:52:45 +07:00
cce556214e feat: Optimize Dockerfile by streamlining build and runtime stages, reducing unnecessary dependencies and improving caching 2025-03-28 11:21:45 +07:00
9a98c7a6e6 feat: Refactor Docker build process to support multi-architecture images for amd64 and arm64 2025-03-27 23:59:54 +07:00
69a1a46033 feat: Remove dependency on merge-manifest for deployment notification job 2025-03-27 23:33:27 +07:00
4f1723b1ad feat: Remove arm64 build process and related steps from GitHub Actions workflow 2025-03-27 23:11:00 +07:00
6afb34d7f2 feat: Update Docker image build process to push images and optimize slimming for amd64 and arm64 2025-03-27 22:48:07 +07:00
6b6e4cffc7 feat: Update Docker Slim configuration to streamline include-path for Python site-packages 2025-03-27 22:27:41 +07:00
97415048f0 feat: Enhance Docker slim process by including Python site-packages paths for amd64 and arm64 builds 2025-03-27 22:23:02 +07:00
f69ee755be feat: Update Docker image build process to improve tagging and slim image handling for amd64 and arm64 2025-03-27 21:56:23 +07:00
ac06b8decb feat: Refactor Docker image build process and optimize tagging for amd64 and arm64 2025-03-27 21:37:29 +07:00
394f94a815 feat: Optimize Docker image builds using docker-slim and update tagging process 2025-03-27 21:24:05 +07:00
584d6e382d feat: Enhance reminder functionality with timezone support and update configuration handling 2.0.2 2025-03-25 12:47:41 +07:00
706f335764 chore: Update requirements.txt to include additional libraries for data processing and visualization 2025-03-24 23:00:42 +07:00
d491b19a5b feat: Enhance data analysis capabilities and code execution
- Added a new tool for analyzing data files (CSV/Excel) and generating visualizations.
- Implemented a function to generate Python code for data analysis based on user requests.
- Updated the OpenAI model tools to include new functions for data analysis and image generation.
- Improved the PDF processing logic to ensure user prompts are clearly included in analysis.
- Introduced a code interpreter module for executing Python code with support for data visualization.
- Enhanced logging and error handling in the code interpreter for better debugging and user feedback.
- Added functionality to sanitize code before execution to prevent unsafe operations.
- Implemented image handling for visualizations generated during code execution.
2025-03-24 22:10:34 +07:00
263e94484f Enhance logging and timezone handling in ReminderManager
- Improved logging setup in code_utils.py for better debugging and persistent logs.
- Added support for user-specific timezones in ReminderManager, allowing reminders to be set and displayed in the user's local timezone.
- Implemented timezone detection and validation for users, ensuring reminders are accurate.
- Enhanced the parsing of time strings to consider user timezones, improving the flexibility of reminder scheduling.
- Updated reminder notifications to reflect the user's timezone, providing a more personalized experience.
2025-03-22 13:29:05 +07:00
49ef4905b9 Refactor code execution and data analysis utilities
- Updated `sanitize_code` function in `code_utils.py` to enhance security by refining banned imports and allowing essential data visualization libraries.
- Added package installation checks for data analysis libraries (pandas, numpy, matplotlib, seaborn) in `execute_code` function.
- Improved code indentation handling before execution to ensure consistent formatting.
- Removed `data_utils.py` as it was deemed unnecessary; functionality integrated into `code_utils.py`.
- Enhanced descriptions in `openai_utils.py` for the code execution function to clarify capabilities and usage.
- Introduced new parameters in the function definitions to support data file processing and visualization options.
2025-03-21 21:31:00 +07:00
21d32bddd8 refactor: Remove push trigger and paths-ignore from main workflow 2025-03-21 12:35:25 +07:00
f677799318 refactor: Update build environment for ARM64 to use Ubuntu 24.04 2025-03-21 11:16:46 +07:00
cdca18b37d refactor: Update Dockerfile for improved dependency installation and cleanup; enhance image generation logging and error handling 2025-03-21 11:12:59 +07:00
822b48984c refactor: Update deployment workflow to depend on merge-manifest job instead of build-and-push 2025-03-20 23:48:48 +07:00
ac9b0b7721 refactor: Update GitHub Actions workflow to build and push multi-architecture Docker images for amd64 and arm64 2025-03-20 23:48:11 +07:00
5d6c478391 refactor: Remove unnecessary rustup commands and clean up Dockerfile by eliminating redundant git installation 2025-03-20 23:00:56 +07:00
e372e13f6f refactor: Remove unused cache pruning step from GitHub Actions and clean up Dockerfile by eliminating unnecessary plugin copy 2025-03-20 22:57:45 +07:00
8eb78a4ca3 refactor: Update Dockerfile and requirements for improved build process and add new dependencies; enhance database connection timeouts and update prompts for better user interaction 2025-03-20 22:54:25 +07:00
3469823e92 refactor: Update Dockerfile to include g++ for enhanced build capabilities 2025-03-20 16:53:19 +07:00
eec9e28a0f refactor: Optimize Dockerfile by switching to Alpine base image and streamlining dependencies for improved build efficiency 2025-03-20 16:43:55 +07:00
20654482bc refactor: Update Dockerfile and GitHub Actions for optimized builds and improved logging in ReminderManager 2025-03-20 16:34:00 +07:00
9f1fc47a3e chore: Remove compiled Python files from cache and update .gitignore to exclude virtual environments and temporary files 2025-03-20 15:54:02 +07:00
b9c43ed50b refactor: Clean up code formatting and enhance test cases for better readability and coverage 2025-03-20 12:50:52 +07:00
80713ac94f feat: Implement data processing and visualization utilities
- Added `data_utils.py` for analyzing and visualizing data from CSV/Excel files.
- Introduced asynchronous processing to handle file uploads without blocking.
- Enhanced error handling for file reading and data conversion.
- Implemented various chart types (pie, bar, scatter, histogram, line) based on user queries.
- Added metadata management for generated charts, including cleanup of old charts.

feat: Create reminder management system for Discord

- Added `reminder_utils.py` to manage user reminders in Discord.
- Implemented functionality to add, retrieve, delete, and process reminders.
- Integrated timezone handling for accurate reminder scheduling.
- Developed a loop to check for due reminders and send notifications.
- Included parsing for various time formats to set reminders.
2025-03-19 23:45:28 +07:00
1fef6ddb97 Enhance message handling by processing text file attachments and extracting their content 2025-03-19 20:48:35 +07:00
bf888301fd Enhance user history management by filtering expired image links and adding timestamps to image URLs 2.0.1 2025-03-18 12:37:38 +07:00
7d2824b556 Merge branch 'main' of https://github.com/Coder-Vippro/ChatGPT-Discord-Bot into add-check-action-for-pull-request
Rollbacks the changes made in the previous commit
2025-03-17 22:48:00 +07:00
0e9d5c2d5d Add support for long responses in Discord by sending as text files 2025-03-17 22:46:26 +07:00
e189356864 Update Dockerfile to install Firefox dependencies and optimize memory settings for Playwright 2025-03-17 20:57:26 +07:00
5f7a4ebd78 Refactor web scraping functions to use Playwright; update requirements and enhance logging 2025-03-17 20:31:46 +07:00
bfa7ec884f Refactor Dockerfile for slim image; replace Selenium with Playwright in requirements and optimize logging 2025-03-17 18:43:49 +07:00