feat: add trackingmore API and ffmpeg

- Included the `ffmpeg` package in the Docker environment to support multimedia content processing.
- Added `trackingmore-api-tool` as a dependency to expand the bot's functionality with tracking capabilities.
- Adjusted the `all` dependencies list in `pyproject.toml` to include the `trackingmore` module, indicating a broader feature set for the application.
- Updated the bot class to prepare for integrating `TrackingMore` alongside existing services like `OpenAI` and `WolframAlpha`, highlighting an intention to make such integrations configurable in the future.

This enhancement enables the bot to interact with multimedia content more effectively and introduces package tracking features, laying groundwork for configurable service integrations.
This commit is contained in:
Kumi 2024-04-23 17:07:57 +02:00
parent 076eb2d243
commit ca68ecb282
Signed by: kumi
GPG key ID: ECBCC9082395383F
3 changed files with 9 additions and 2 deletions

View file

@ -6,7 +6,8 @@ COPY pyproject.toml /app
COPY README.md /app
COPY LICENSE /app
RUN apt update && apt install -y build-essential libpython3-dev
RUN apt update
RUN apt install -y build-essential libpython3-dev ffmpeg
RUN pip install .[all]
RUN pip install 'future==1.0.0'

View file

@ -51,8 +51,12 @@ e2ee = [
"pantalaimon>=0.10.5",
]
trackingmore = [
"trackingmore-api-tool",
]
all = [
"matrix-gptbot[openai,wolframalpha,e2ee]",
"matrix-gptbot[openai,wolframalpha,e2ee,trackingmore]",
"geopy",
"beautifulsoup4",
]

View file

@ -60,6 +60,8 @@ from ..migrations import migrate
from ..callbacks import RESPONSE_CALLBACKS, EVENT_CALLBACKS
from ..commands import COMMANDS
from ..tools import TOOLS, Handover, StopProcessing
# TODO: Make these optional based on config
from .openai import OpenAI
from .wolframalpha import WolframAlpha
from .trackingmore import TrackingMore