fix(compose): repair STT after Onyx 5.0.3 upgrade and fix silent alembic skip
- Replace fragile runtime `sed` patches with idempotent Python patching in
api_server entrypoint. The old `sed` heuristics broke because Onyx 5.x
refactored the voice provider to use the OpenAI SDK
(`client.audio.transcriptions.create`) instead of raw HTTP payloads,
causing the language parameter to never be injected and the model
fallback to corrupt factory.py with chained `or` expressions.
- Add `WHISPER_MODEL` env override (defaults to `whisper-1`) so the
transcription payload uses the exact model name exposed by the backend
proxy. Fixes 404 "model not found" against self-hosted Whisper/LiteLLM.
- Fix critical Docker bug where `command` was passed as an argument to
the custom `entrypoint` and silently ignored. `alembic upgrade head`
now runs inside the entrypoint before Uvicorn starts.
- Merge upstream compose improvements:
* Add json-file logging (50m/6 rotation) to web_server, relational_db,
and code-interpreter
* Add code-interpreter healthcheck
* Include optional MCP server block (commented out)
- Preserve existing Livtec customizations:
* Voice endpoint redirected to aido-whisper-ch.livtec.cloud
* WHISPER_LANGUAGE=de injected into SDK transcribe() call
* Custom livtec/aido-web:local branded image
* Bind mounts for logs, caches, and file-system
fix(compose): merge upstream improvements and fix silent alembic skip
- Fix critical Docker behavior bug where the separate `command` block on
`api_server` was being passed as an argument to the custom `entrypoint`
and silently ignored. `alembic upgrade head` is now executed inside
the entrypoint before Uvicorn starts, ensuring DB migrations run.
- Add missing upstream logging blocks (json-file, 50m/6 rotation) to
`web_server`, `relational_db`, and `code-interpreter`.
- Add upstream `healthcheck` to `code-interpreter` for accurate status.
- Include optional upstream `mcp_server` service block (commented out).
feat(voice): override OpenAI voice defaults for custom Whisper proxy
Replace api_server command with entrypoint that patches Onyx voice
provider files at runtime. Required because v4.8.x UI does not allow
setting api_base/stt_model for OpenAI Whisper.
- Force chunked HTTP STT via VOICE_DISABLE_STREAMING_STT=true
- Redirect all OpenAI voice constants to aido-whisper-ch.livtec.cloud
- Add WHISPER_LANGUAGE=de env var for transcription language
LiteLLM proxy, database and Redis are no longer
managed by this repository. They have moved to aido-litellm.
- Remove litellm-proxy, litellm-db, litellm-redis services from
docker-compose.yml
- Remove litellm-config.yaml (now maintained in aido-litellm)
- Prune LiteLLM-specific environment variables from .env.example
The litellm-redis `command:` was indented at service level (2 spaces) instead of
inside the service (4 spaces), so Docker Compose parsed it as a bogus top-level
service named `command` and rejected the entire file with:
services.command must be a mapping
This made `docker compose <anything>` fail — the whole stack was unstartable.
Re-indented it under litellm-redis; `docker compose config` now validates.
- web_server: branded livtec/aido-web:local from ./web, pull_policy never
- restore minio (S3 file store) the flattened compose dropped — api_server
requires S3_ENDPOINT_URL=http://minio:9000 and won't start without it
- nginx published on ${HOST_PORT:-3000} → out-of-the-box http://localhost:3000
- Makefile targets the single file (no override chain)
- README: ./web layout, one-compose flow, USER_AUTH_SECRET + first-boot notes
- gitignore runtime data dirs (db_volume, model caches)
Verified: stack converges healthy on the single file; localhost:3000 + /api/health both 200.
Replace the nested `onyx/` full-clone approach with a flattened, self-contained
deployment structure:
- `make setup` now uses `git sparse-checkout` to fetch only `web/` and
`deployment/data/nginx/` from upstream, extracting them flat into `./web`
and `./data/nginx`. This avoids downloading the entire Onyx repository
when we only rebuild the branded web container ourselves.
- Add a top-level `docker-compose.yml` as the base stack file instead of
referencing paths inside `onyx/deployment/...`. This keeps the compose
project in the repo root so it can be managed by dockge and simplifies
putting Traefik in front of the Onyx nginx.
- Update `docker-compose.branding.yml` build context from `./onyx/web` to `./web`.
- Update `branding.config.json`:
- `webSrcRoot`: `onyx/web` → `web`
- `pinnedCommit`: pinned hash → `main`
- Add rename literals for "Open Source AI Platform" → "Powered by Livtec"
and `https://www.onyx.app` → `https://livtec.cloud`
- Replace the minimal `.env.example` with the full Onyx deployment template.
- Add `setup.sh` for server provisioning (Node.js 25, make, /opt/stacks/onyx).
- Update `make verify` to search `./web/src` instead of `./onyx/web/src`.
All backend/model services continue to use official upstream Docker images;
only the `web_server` image is built locally from the branded source.