changed describe.py a bit

This commit is contained in:
david committed 2026-10-23 03:34:54 -03:00
1 parent dc06343909
commit a704744f5c
2 files changed
+55 -8

No files matched your search

+1 -1
View File
@@ -93,7 +93,7 @@ QUIET_COOLDOWN = 600 # seconds of silence before she's allowed to send a random
MEDIA_MIMES = ("image/png", "image/jpeg", "image/webp", "image/heic", "image/heif",
"audio/", "video/", "application/pdf", "text/plain") # what gemini can actually read
MEDIA_MAX_BYTES = 10 * 1024 * 1024 # total per message, gemini caps inline request size (~20mb and base64 adds a third)
MEDIA_SAVE_MAX_BYTES = 8 * 1024 * 1024 # per file we keep, stays under discord's 10mb upload limit so she can send it back
MEDIA_SAVE_MAX_BYTES = 19 * 1024 * 1024 # per file we keep, stays under discord's 10mb upload limit so she can send it back
def log_error(text: str):
with ERROR_FILE.open("a", encoding="utf-8") as f: