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:
parent
076eb2d243
commit
ca68ecb282
3 changed files with 9 additions and 2 deletions
|
@ -6,7 +6,8 @@ COPY pyproject.toml /app
|
||||||
COPY README.md /app
|
COPY README.md /app
|
||||||
COPY LICENSE /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 .[all]
|
||||||
RUN pip install 'future==1.0.0'
|
RUN pip install 'future==1.0.0'
|
||||||
|
|
||||||
|
|
|
@ -51,8 +51,12 @@ e2ee = [
|
||||||
"pantalaimon>=0.10.5",
|
"pantalaimon>=0.10.5",
|
||||||
]
|
]
|
||||||
|
|
||||||
|
trackingmore = [
|
||||||
|
"trackingmore-api-tool",
|
||||||
|
]
|
||||||
|
|
||||||
all = [
|
all = [
|
||||||
"matrix-gptbot[openai,wolframalpha,e2ee]",
|
"matrix-gptbot[openai,wolframalpha,e2ee,trackingmore]",
|
||||||
"geopy",
|
"geopy",
|
||||||
"beautifulsoup4",
|
"beautifulsoup4",
|
||||||
]
|
]
|
||||||
|
|
|
@ -60,6 +60,8 @@ from ..migrations import migrate
|
||||||
from ..callbacks import RESPONSE_CALLBACKS, EVENT_CALLBACKS
|
from ..callbacks import RESPONSE_CALLBACKS, EVENT_CALLBACKS
|
||||||
from ..commands import COMMANDS
|
from ..commands import COMMANDS
|
||||||
from ..tools import TOOLS, Handover, StopProcessing
|
from ..tools import TOOLS, Handover, StopProcessing
|
||||||
|
|
||||||
|
# TODO: Make these optional based on config
|
||||||
from .openai import OpenAI
|
from .openai import OpenAI
|
||||||
from .wolframalpha import WolframAlpha
|
from .wolframalpha import WolframAlpha
|
||||||
from .trackingmore import TrackingMore
|
from .trackingmore import TrackingMore
|
||||||
|
|
Loading…
Reference in a new issue