Open WebUI: add optional OpenTelemetry package install (#16415)

This commit is contained in:
Kevin O'Brien
2026-08-11 12:38:34 -07:00
committed by GitHub
parent dac41766f0
commit 314d7a387a
2 changed files with 29 additions and 2 deletions
+8 -1
View File
@@ -114,7 +114,14 @@ EOF
msg_info "Updating Open WebUI via uv"
PYTHON_VERSION="3.12" setup_uv
$STD uv tool install --force --python 3.12 --constraint <(echo "numba>=0.60") open-webui[all]
OWUI_PYTHON="/root/.local/share/uv/tools/open-webui/bin/python3.12"
OTEL_ARGS=()
if [[ -x "$OWUI_PYTHON" ]]; then
while IFS= read -r pkg; do
OTEL_ARGS+=(--with "$pkg")
done < <(uv pip list --python "$OWUI_PYTHON" --format freeze 2>/dev/null | grep -i '^opentelemetry-' | cut -d= -f1)
fi
$STD uv tool install --force --python 3.12 --constraint <(echo "numba>=0.60") "${OTEL_ARGS[@]}" open-webui[all]
systemctl restart open-webui
msg_ok "Updated Open WebUI"
msg_ok "Updated successfully!"