45 Commits

Author SHA1 Message Date
9c180bdd89 Refactor OpenAI utilities and remove Python executor
- Removed the `analyze_data_file` function from tool definitions to streamline functionality.
- Enhanced the `execute_python_code` function description to clarify auto-installation of packages and file handling.
- Deleted the `python_executor.py` module to simplify the codebase and improve maintainability.
- Introduced a new `token_counter.py` module for efficient token counting for OpenAI API requests, including support for Discord image links and cost estimation.
2025-10-02 21:49:48 +07:00
ac6bb8c582 refactor: simplify logging setup by removing file handlers and using console output only 2025-08-25 17:47:50 +07:00
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
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
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
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
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
b9c43ed50b refactor: Clean up code formatting and enhance test cases for better readability and coverage 2025-03-20 12:50:52 +07:00
Vu Quoc Anh
ade407497d Update Dockerfile 2025-03-16 21:13:48 +07:00
Vu Quoc Anh
f3bd85fa67 Update Dockerfile 2025-03-15 14:02:55 +07:00
Vu Quoc Anh
66ac346f02 Update Dockerfile 2025-03-15 13:26:40 +07:00
Vu Quoc Anh
a20e3754d9 Update Dockerfile 2025-03-15 13:24:39 +07:00
de0c357839 Refactor Dockerfile to install gcc and C++ separately; update requirements.txt to enhance dependency versions and add new packages for improved functionality 2025-03-15 13:17:19 +07:00
9069d16f19 Add logging configuration and enable webhook logging in config.py; update Dockerfile to include gcc and c++ dependencies 2025-03-15 13:09:15 +07:00
7280d641da Fix Python site-packages path in Dockerfile for correct package copying 2025-03-14 11:34:38 +07:00
0d2016b63d Update Dockerfile to use Python 3.12.3 and refine NORMAL_CHAT_PROMPT for clarity 2025-03-14 11:23:55 +07:00
d8d45f6392 Refactor Dockerfile to use multi-stage builds, update Python version, and include Rust dependencies 2025-03-14 11:21:06 +07:00
Vu Quoc Anh
31f70d9bc5 Update Dockerfile 2025-03-13 23:58:25 +07:00
4b5adafea8 Update Dockerfile to include Rust compiler and adjust Python version 2025-03-13 23:28:42 +07:00
8136aa2dda Refactor Dockerfile for multi-stage build, update dependencies in requirements.txt, and add image generation and database handler modules 2025-03-13 22:10:57 +07:00
d0287e7b9f Remove Flask server and health-check endpoint from bot implementation and update requirements 2025-03-06 21:00:32 +07:00
a80b4c64a4 Add g++ compiler and build-essential to Dockerfile dependencies 2025-02-25 18:15:16 +07:00
Vu Quoc Anh
6230e5e008 Update Dockerfile 2024-12-31 15:05:53 +07:00
ec81826a2f Update health check implementation and expose new endpoint in Docker setup 2024-11-30 21:40:59 +07:00
66c1f73519 Add curl installation to Dockerfile for dependency management 2024-11-29 23:56:56 +07:00
8da25ac08e Add health check endpoint and update CI workflow for testing and security checks 2024-11-29 23:44:57 +07:00
f01e62429d Update Dockerfile to use Python 3.11.10 and specify openai version in requirements.txt 2024-11-07 21:59:22 +07:00
74dcc92e81 Update Dockerfile to use Python 3.12.6 and refactor image handling in message processing to limit image URLs and improve API call parameters 2024-11-07 21:34:15 +07:00
7c5fe88902 Refactor bot.py to replace SQLite with MongoDB for user data management; update requirements and .gitignore 2024-11-06 11:18:16 +07:00
7588546fcf Update Dockerfile to install SQLite and enhance file handling in bot.py for better attachment processing 2024-11-02 20:46:18 +07:00
6785b9d383 Initial commit with all files 2024-10-26 13:19:48 +07:00