fastapi==0.141.1
# Pinned explicitly: the 7 advisories were against starlette, not fastapi,
# and only >=1.3.1 clears them all. fastapi <0.135 capped starlette below
# 1.0, so the framework had to move first.
starlette==1.6.0
uvicorn[standard]==0.27.0
# Parses every multipart upload (avatar images). 0.0.6 carried 7 advisories,
# several of them parser DoS in exactly that request path.
python-multipart==0.0.31
# Signs and verifies every JWT (see app/tokens.py). Replaced python-jose,
# which pinned pyasn1<0.5.0 and pulled in ecdsa — 10 advisories between them
# with no fix reachable behind that pin. PyJWT uses `cryptography` instead and
# drops both transitive dependencies.
PyJWT[crypto]==2.15.0
# Transitive (via rsa/google-auth), pinned explicitly because it was stuck
# at 0.4.8 with 8 advisories by python-jose's pyasn1<0.5.0 cap. With jose
# gone nothing constrains it, so pin the fixed line.
pyasn1==0.6.5
# bcrypt used directly for password hashing — passlib 1.7.4 (2020) is
# incompatible with bcrypt 5.x and is unmaintained, so we dropped it.
bcrypt>=4.1.0
python-dotenv==1.2.2
pydantic[email]==2.13.5
pydantic-settings==2.15.0

# Database
sqlalchemy==2.0.25
asyncpg==0.29.0
alembic==1.13.1
psycopg2-binary==2.9.9

# Redis & Caching
redis==5.0.1
hiredis==2.3.2

# AWS
# Bumped together to lift botocore's urllib3<2.1 cap, which pinned urllib3
# at 2.0.7 with 5 open advisories (fixes need >=2.5). storage.py uses only
# Session/client-as-async-CM and put/get/delete/head/create_bucket, all
# unchanged across 12->15; verified each call reaches the transport layer.
boto3==1.40.61
aioboto3==15.5.0

# WebSocket
websockets==17.4
# WebRTC media delivery (MEDIA_TRANSPORT=webrtc; off by default). Pure-Python
# stack; shares PyAV with faster-whisper and resolves to the same version.
aiortc==1.16.0
# Voice-agent framework. Used for its turn-taking components — Silero voice
# activity detection and the Smart Turn end-of-turn model — rather than
# re-implementing them. Installing it is what moved numpy (1.26.3 → 1.26.4),
# websockets, aiofiles and soundfile; nothing in the ML stack changed.
pipecat-ai[silero,local-smart-turn-v3]==1.16.0
python-socketio==5.16.2

# AI/ML
# Pinned to the releases this code is tested against. Both were open-ended
# (`>=`), so a fresh install silently jumped major versions: anthropic went
# from 0.x to 2.x, which removed the `temperature` argument llm.py passed on
# every call — every Claude request then failed before it was sent, on any
# machine installed after that release. Bump deliberately, with the tests.
anthropic==2.8.0
openai==3.49.0
torch==2.2.0
torchvision==0.17.0
torchaudio==2.2.0
transformers==4.37.2
accelerate==0.26.1
diffusers==0.32.2
numpy==1.26.4
opencv-python==4.9.0.80
# 10.2.0 carried 3 advisories; some are only fixed in 12.2+. Safe for the
# lip-sync path: MuseTalk uses only Image.fromarray/new/open and
# resize(..., Image.BILINEAR), all of which still exist in 12.x (it never
# touches Image.ANTIALIAS, the notable 10.0 removal). moviepy pins
# pillow<12 but is not a dependency of this service — it backs MuseTalk's
# standalone Gradio app.py, which we never invoke.
#
# 13.0.0 clears a further 40 advisories filed against 12.3.0 and requires
# Python >=3.11 — one of the two reasons the project moved off Python 3.10
# (the other is filelock, below; 3.10 itself is past end-of-life).
Pillow==13.0.0
librosa==0.10.1
# librosa 0.10 imports pkg_resources, which setuptools removed in 81 and which
# a fresh virtualenv (uv, or pip on Python 3.12+) does not include at all.
# Without it every lip-sync job — and the speech-to-text decode fallback —
# failed on import. Pinned so the environment does not depend on what the
# venv tool happened to preinstall.
setuptools>=68,<81
soundfile==0.13.1
scipy==1.12.0

# STT
faster-whisper>=1.0.0
# Streaming speech-to-text runtime (STT_STREAMING=sherpa; off by default).
# Ships its own private onnxruntime, so it does not touch the one above. The
# model is a separate download: scripts/setup_streaming_stt.sh.
sherpa-onnx==2.0.1

# TTS
# NOTE: chatterbox-tts is intentionally NOT pinned here — install it from
# requirements-tts.txt into its own environment. It cannot coexist with the
# pinned stack above: chatterbox 0.1.7 requires librosa==0.11.0, torch==2.6.0
# and transformers==5.2.0, while MuseTalk needs torch 2.2 / transformers 4.37,
# and chatterbox <=0.1.6 requires numpy<1.26 against our numpy==1.26.3. Listing
# it made `pip install -r requirements.txt` unresolvable, which broke the
# install for everyone — including CI, where both backend jobs failed on it.
#
# app/services/tts.py imports chatterbox inside a try/except, so without it
# synthesis transparently uses the Edge TTS path below. See README → TTS.
#
# Edge TTS — free Microsoft neural voices; the default path when Chatterbox is
# not installed (no API key, no GPU). gTTS remains the last resort.
edge-tts>=6.1.0
# Local CPU text-to-speech (TTS_PROVIDER=supertonic; optional, not the
# default). ONNX only. Weights are fetched on first use and are licensed
# BigScience OpenRAIL-M — read docs before shipping it in a product.
supertonic==1.3.1
gtts==2.5.1
pydub==0.25.1

# Avatar Animation
# einops is imported by MuseTalk itself (musetalk/utils/audio_processor.py).
# It was installed only by scripts/setup_musetalk.sh, into a host virtualenv —
# so the Docker image, built from this file alone, never had it, and the
# lip-sync worker died on import in every container.
einops==0.8.1
face-alignment==1.4.1
imageio==2.33.1
imageio-ffmpeg==0.4.9
scikit-image==0.22.0
kornia==0.7.1

# Video Processing
ffmpeg-python==0.2.0

# Celery
celery==5.3.6
flower==2.0.1

# Monitoring & Logging
prometheus-client==0.19.0
prometheus-fastapi-instrumentator==8.1.0
sentry-sdk==2.8.0

# Transitive, pinned only as floors so a fresh install cannot resolve to a
# release with open advisories: filelock (via torch / huggingface-hub, 17),
# tornado (via flower, 3), dnspython (via email-validator, 1). filelock's
# fixed line needs Python >=3.11.
filelock>=4.2.1
tornado>=6.6
dnspython>=2.9.0

# Utilities
httpx==0.26.0
aiofiles==25.1.0
tenacity==8.2.3
pyyaml==6.0.1
requests==2.33.0

# Testing
pytest==9.0.3
pytest-asyncio==1.4.1.post1
pytest-cov==7.1.0
aiosqlite==0.19.0  # in-memory async DB for the test suite
httpx==0.26.0  # AsyncClient for endpoint tests (also a runtime dep above)
