262 Commits

Author SHA1 Message Date
57f9d642bb Reduce search results 2024-12-25 10:34:34 +07:00
51a243f9aa Reduce number of search results returned by Google custom search from 5 to 3 2024-12-10 21:17:06 +07:00
503961ba88 Update search functionality to include scraped content and refine prompts 2024-12-10 20:59:37 +07:00
797c1e9e7c Remove user history entry upon error handling in bot 2024-12-03 15:45:39 +07:00
071e77f2c9 Refactor GitHub Actions workflow to rename test job and enhance deployment steps 2024-12-02 23:27:38 +07:00
1353381686 Fix indentation in GitHub Actions workflow for deploy job 2024-12-02 18:36:01 +07:00
276e3424ee Remove commented-out unit test job from GitHub Actions workflow 2024-12-02 18:31:24 +07:00
558d3c3240 Remove redundant checkout step and clean up whitespace in GitHub Actions workflow 2024-12-02 18:28:13 +07:00
50db24fdbb Refactor GitHub Actions workflow to generate and apply Kubernetes secrets from YAML 2024-12-02 18:24:36 +07:00
3e9adc5909 Refactor GitHub Actions workflow to encode secrets as Base64 and create Kubernetes secrets from files 2024-12-02 18:06:16 +07:00
0e297c15f8 Update Kubernetes manifest path in GitHub Actions workflow 2024-12-02 17:56:30 +07:00
5a560eb8ec Add environment specification for deploy job in GitHub Actions workflow 2024-12-02 17:49:20 +07:00
5e2d399422 Refactor GitHub Actions workflow: rename jobs for clarity and streamline deployment steps 2024-12-02 17:46:20 +07:00
36b824d63d Start Flask server in a separate thread during bot initialization 1.0.5 2024-11-30 21:48:14 +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
7285f79905 Fix indentation in CI workflow for consistency and readability 2024-11-29 23:48:24 +07:00
8da25ac08e Add health check endpoint and update CI workflow for testing and security checks 2024-11-29 23:44:57 +07:00
Vu Quoc Anh
e17af58b22 Update requirements.txt 2024-11-29 16:42:11 +07:00
Vu Quoc Anh
e2c0a00abf Update main.yml 2024-11-29 12:50:58 +07:00
22932fd707 Increase maximum image limit to 10 and improve rate limit error message for better user guidance 2024-11-08 22:10:14 +07:00
5129d5bd39 Specify openai version in requirements.txt to ensure compatibility 2024-11-07 22:25:07 +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
4bbc926b6c Fix indentation for change_status.start() in bot startup sequence 2024-11-07 21:43:36 +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
5f991946eb Enhance image handling in message processing by adding support for appending image URLs to content and retrieving the last 10 images from history for API messages 2024-11-07 17:58:19 +07:00
Vu Quoc Anh
b00442b2da Create CODE_OF_CONDUCT.md 2024-11-07 15:50:54 +07:00
4b1735ee2c Update GitHub Actions workflow to securely pass MongoDB URI as an environment variable 2024-11-06 12:47:14 +07:00
46c64bc765 Remove MongoDB URI environment variable from GitHub Actions workflow 2024-11-06 12:42:31 +07:00
afd90592d3 Update GitHub Actions workflow to improve container run command formatting 2024-11-06 12:37:40 +07:00
ede3729943 Add MongoDB URI to GitHub Actions workflow for environment configuration 1.0.4 2024-11-06 11:42:55 +07:00
Vu Quoc Anh
458fb0db41 Update README.md 2024-11-06 11:22:01 +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
24af900bf2 Update .gitignore to exclude chat_history.db and modify message handling in bot.py to improve message processing 2024-11-06 10:45:26 +07:00
8747d9c550 Refactor response handling in web function to use interaction.followup.send for improved message delivery 2024-11-04 00:25:00 +07:00
7cf56540fd Enhance file handling in bot.py to support additional file types and improve message processing with attachments; add discord.py to requirements 1.0.3 2024-11-03 10:06:17 +07:00
947cb7d9f3 Remove unused PyPDF2 import from bot.py 2024-11-02 23:53:19 +07:00
b6cd7534da Fix default user model preference to "gpt-4o" in get_user_model function 2024-11-02 23:52:49 +07:00
9d360abf95 Enhance message handling in bot.py to support PDF attachments and improve content processing 2024-11-02 23:50:19 +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
65bf195701 Update prompts in bot.py to enhance user guidance and problem-solving approach 2024-10-31 21:34:36 +07:00
f484dc9935 Handle RateLimitError in user message processing to improve error feedback 2024-10-31 12:58:00 +07:00
ade90e9337 Increase heartbeat timeout for bot initialization to improve connection stability 2024-10-31 12:44:59 +07:00
37b62d8906 Add reset and help commands to bot.py for user data management and command listing 2024-10-30 23:38:11 +07:00
997945599e Refactor bot.py to use SQLite for storing user histories
- Implemented database functions: create_tables(), get_history(), and save_history()
- Modified user_histories to persist data in SQLite database chat_history.db
- User conversation histories now remain available even when the container is offline
2024-10-30 21:51:28 +07:00
56bf7e0f8d Refactor bot.py: Rename slash command functions and restore bot startup event for syncing commands 2024-10-30 17:33:04 +07:00
98c6c0b7a3 Add slash commands for OpenAI models: o1-preview and o1-mini with file attachment support 2024-10-30 17:10:24 +07:00
a79b4846b4 Refactor bot.py: Improve Google search and web scraping functionality, Add user history to SQlite database. 1.0.2 2024-10-29 23:42:30 +07:00
Vu Quoc Anh
b29957475d Create LICENSE 2024-10-28 21:23:06 +07:00
Vu Quoc Anh
e76c5f0cda Delete LICENSE 2024-10-28 21:21:41 +07:00