Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(llma): self-heal llm-gateway venv via uv sync (#62459)

Raúl Negrón-Oterobed7c4fa8e5c
diff --git a/bin/start-llm-gateway b/bin/start-llm-gateway
index 8bdd0231ad28..347b1ff30fa7 100755
--- a/bin/start-llm-gateway
+++ b/bin/start-llm-gateway
@@ -30,11 +30,7 @@ cd "$REPO_ROOT/services/llm-gateway"
unset VIRTUAL_ENV
export UV_PROJECT_ENVIRONMENT="$PWD/.venv"
-if [ ! -d ".venv" ]; then
- uv venv .venv
-fi
-
-uv pip install -e . --quiet
+uv sync --quiet
exec .venv/bin/uvicorn llm_gateway.main:app \
--host 0.0.0.0 \