8 Commits

Author SHA1 Message Date
c6ad3aeae0
fix: Update API base URL and improve request logging in UploadCog 2025-05-21 11:54:31 -06:00
bfd0d606ab
feat: Add timeout and interaction control to captcha modal
Set a 10-minute timeout for the `CaptchaModal` to prevent it from hanging indefinitely. Implemented a `wait()` method within the modal, allowing the calling function to asynchronously wait for submission or timeout. This enables proper flow control for the upload process.

Restricted the "Solve Captcha" button in `CaptchaView` to only be clickable by the user who initiated the command, preventing unauthorized interaction.
2025-05-21 11:50:19 -06:00
04c2dd75b9
Refactor: Simplify captcha interaction and API logic
Removed internal submission tracking (event, timeout flag, wait method) from `CaptchaModal`, streamlining its state management.
Eliminated the `original_interactor_id` check in `CaptchaView`, allowing any user to attempt solving the captcha.
Cleaned up redundant API path normalization logic and removed debugging print statements in `_make_api_request` for a more concise implementation.
2025-05-21 11:46:26 -06:00
149a96a90d
feat: Enhance captcha handling with submission tracking and user restriction 2025-05-21 11:43:34 -06:00
085d9be740
feat: Refactor captcha handling to use a view for modal submission 2025-05-21 11:37:42 -06:00
35546ed55b
fix: Add headers to aiohttp ClientSession for UploadCog 2025-05-21 11:20:19 -06:00
6549a5c324
feat: Implement interactive image captcha for file uploads 2025-05-21 11:17:55 -06:00
8788cea989
feat: Add upload cog, update AI model, and refine Teto prompt
- Introduce `upload_cog.py` for handling file uploads.
- Update AI model from `google/gemini-2.5-flash-preview` to `google/gemini-2.5-flash-preview-05-20` for improved performance and stability.
- Refine Teto's roleplay system prompt:
    - Add explicit 18+ age disclaimer for all roleplay characters.
    - Include context about prepended usernames for better AI understanding.
    - Adjust Teto's perceived age to 18 for consistency.
    - Remove outdated or unnecessary prompt instructions.
2025-05-21 11:14:06 -06:00