Add image and GIF vision support

- Add ImageAttachment dataclass for image metadata
- Update Message to support list of image attachments
- Update all providers (OpenAI, Anthropic, Gemini, OpenRouter) for vision
- Extract images from Discord attachments and embeds in ai_chat.py
- Supports PNG, JPEG, GIF, and WebP formats
This commit is contained in:
2026-01-11 20:56:50 +01:00
parent 8f521b869b
commit 4ac123be9c
8 changed files with 187 additions and 12 deletions

View File

@@ -2,12 +2,13 @@
from .ai_service import AIService
from .conversation import ConversationManager
from .providers import AIResponse, Message
from .providers import AIResponse, ImageAttachment, Message
from .searxng import SearXNGService
__all__ = [
"AIService",
"AIResponse",
"ImageAttachment",
"Message",
"ConversationManager",
"SearXNGService",