From c42d4f7538d7df1abd825c1ac1af748450bec796 Mon Sep 17 00:00:00 2001 From: Yang Zhi Date: Tue, 7 Apr 2026 03:26:04 +0800 Subject: [PATCH] Include gemini optional dependency in Docker image The Dockerfile only includes the `bot` extra when installing dependencies, which means the `google-genai` package is missing at runtime. This causes the server to crash with `TypeError: 'NoneType' object is not callable` when users configure the Gemini embedding provider. Add `--extra gemini` to the `uv sync` commands so the Docker image ships with Gemini support out of the box. Fixes #1253 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0f683d4e8..e28165cb2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -51,13 +51,13 @@ COPY third_party/ third_party/ RUN --mount=type=cache,target=/root/.cache/uv,id=uv-${TARGETPLATFORM} \ case "${UV_LOCK_STRATEGY}" in \ locked) \ - uv sync --locked --no-editable --extra bot \ + uv sync --locked --no-editable --extra bot --extra gemini \ ;; \ auto) \ if ! uv lock --check; then \ uv lock; \ fi; \ - uv sync --locked --no-editable --extra bot \ + uv sync --locked --no-editable --extra bot --extra gemini \ ;; \ *) \ echo "Unsupported UV_LOCK_STRATEGY: ${UV_LOCK_STRATEGY}" >&2; \