eve / app.py

Commit History

Enhance voice reply processing to include a friendly tone in prompts; fix minor logging issue in worker function.
f8e6b2e

Chandima Prabhath commited on

Enhance configuration to support function calling for image generation and text replies; improve help text for user commands.
3ad83d3

Chandima Prabhath commited on

Enhance whatsapp_webhook to generate and send voice prompts based on LLM replies.
8deb81b

Chandima Prabhath commited on

Enhance whatsapp_webhook to include voice prompt handling for audio replies.
97cefd5

Chandima Prabhath commited on

Refactor BotConfig to clarify BOT_JID comment; enhance quoted message handling in whatsapp_webhook for improved user reply processing.
8f336a6

Chandima Prabhath commited on

Add debug logging for received data in whatsapp_webhook function
458794e

Chandima Prabhath commited on

Refactor BotConfig validation to include BOT_JID; improve help text formatting and clarity in command descriptions.
1fbbc17

Chandima Prabhath commited on

Refactor handle_image_generation function for improved error handling and clarity; update system prompt in config.yaml with enhanced command descriptions.
a9740d0

Chandima Prabhath commited on

Refactor app.py: enhance BotConfig validation, streamline environment variable checks, and improve image generation handling for better clarity and functionality.
6bc0800

Chandima Prabhath commited on

Refactor app.py: enhance BotConfig and BotClient classes, streamline environment variable validation, and improve message handling for better clarity and functionality.
bd4dd6a

Chandima Prabhath commited on

Refactor app.py: streamline environment variable checks, enhance error handling, and improve command processing for better clarity and functionality.
71b0af4

Chandima Prabhath commited on

Remove unused psycopg2 import and flask dependency from requirements
e674ffd

Chandima Prabhath commited on

Refactor ensure_user_exists function to use maybe_single for user retrieval
1c5a919

Chandima Prabhath commited on

Remove PostgreSQL connection setup and related schema provisioning from app.py
d013b54

Chandima Prabhath commited on

Refactor database connection to use individual environment variables for PostgreSQL
b5c88e6

Chandima Prabhath commited on

Remove unnecessary comment from supabase import statement
9d98415

Chandima Prabhath commited on

Refactor prepare_tables function to connect using DATABASE_URL directly with sslmode
27d50d1

Chandima Prabhath commited on

Fix DATABASE_URL assignment to only use environment variable
431cf30

Chandima Prabhath commited on

Refactor prepare_tables function to use psycopg2 for PostgreSQL connection and table creation
fdb3a70

Chandima Prabhath commited on

Refactor prepare_tables function to use raw SQL for creating users and images tables
b2ef8c6

Chandima Prabhath commited on

Update .gitignore to include __pycache__ and remove unused compiled Python files; modify app.py for improved environment variable handling and add Supabase integration; update requirements.txt to include supabase package.
05a6e54

Chandima Prabhath commited on

Refactor environment variable handling and remove unused send_status_image function
c15a013

Chandima Prabhath commited on

Revert "Fix send_status_image to use correct key for uploaded file URL in response"
87a21e8

Chandima Prabhath commited on

Fix send_status_image to use correct key for uploaded file URL in response
c424cee

Chandima Prabhath commited on

Add debug logging for image upload in send_status_image function
6c4cd05

Chandima Prabhath commited on

Refactor send_status_image to upload image file and send WhatsApp status update using the obtained URL
133067d

Chandima Prabhath commited on

Refactor send_status_image to accept image URL instead of file path and update payload handling for WhatsApp status updates
2984504

Chandima Prabhath commited on

Implement WhatsApp status updater with image generation and sending functionality
9b5a03d

Chandima Prabhath commited on

Add WhatsApp status updater functionality and improve image handling
e341e67

Chandima Prabhath commited on

Remove redundant help text message from startup notification
e2c505b

Chandima Prabhath commited on

Refactor image handling in handle_image_generation to streamline image sending and improve error handling
1743c01

Chandima Prabhath commited on

Refactor image sending logic to send first three images without caption and the last image with a caption listing all URLs.
856d629

Chandima Prabhath commited on

Enhance image sending functionality to support concurrent uploads of multiple images
59da9b5

Chandima Prabhath commited on

Add support for sending multiple images at once and update image generation handling
6e6c1ff

Chandima Prabhath commited on

Update help text formatting for improved clarity and consistency
5dc25fa

Chandima Prabhath commited on

Update help text formatting for improved readability and consistency
1f50f83

Chandima Prabhath commited on

Update help text and command from '/imagine' to '/gen' for image generation consistency
25a19e1

Chandima Prabhath commited on

Refactor URL construction in generate_llm function for consistency; adjust parameter order for clarity.
d8d7161

Chandima Prabhath commited on

Increase random seed range to enhance variability in image and trivia generation across multiple modules
e371810

Chandima Prabhath commited on

Add random seed generation for trivia question prompts to enhance variability in JSON output
faa3c7c

Chandima Prabhath commited on

Enhance trivia question generation prompt for clarity and enforce strict JSON format; add debug logging for random seed in LLM URL construction.
ed8fee4

Chandima Prabhath commited on

Add chat ID logging to webhook and refine trivia question generation prompt
8a638e3

Chandima Prabhath commited on

Add inactivity reminder and enhance message sending functionality; implement JSON extraction for trivia questions and improve command handling.
162ca3a

Chandima Prabhath commited on

Refactor startup message handling and improve trivia JSON parsing; remove startup message function and add JSON extraction utility.
94856b9

Chandima Prabhath commited on

Improve trivia question generation with clearer JSON format and enhanced error handling; log errors for better debugging.
8ac1fbd

Chandima Prabhath commited on

Enhance app functionality with inactivity monitoring, startup messaging, and improved command responses; update configuration for text and voice replies.
ff069bf

Chandima Prabhath commited on

Update weather API endpoint and enhance image generation message for clarity
07534df

Chandima Prabhath commited on

Add random seed to voice reply generation and enhance image sending function with customizable caption
4beb4cc

Chandima Prabhath commited on

Refactor system prompt for clarity and conciseness; update environment variable handling and improve error logging in app.py
7995625

Chandima Prabhath commited on

Remove PORT environment variable and set default port directly in the run command
c2d7a4c

Chandima Prabhath commited on