Skip to content
Discussion options

You must be logged in to vote

Skipping the profiling is totally safe, LiteLLM's core (routing, fallbacks, caching, spend tracking, all the logging integrations) never touches pyroscope. It's gated behind an env flag and only runs if you opt in.

The flag that controls it is LITELLM_ENABLE_PYROSCOPE. You can see the wiring in litellm/proxy/proxy_server.py in _init_pyroscope: it calls get_secret_bool("LITELLM_ENABLE_PYROSCOPE") and returns early if that isn't set, so with the flag unset the profiling path never runs even if the package is missing.

Where ppc64le bites you: pyroscope-io is listed in the proxy extra in pyproject.toml:

pyroscope-io>=0.8.16,<1.0; sys_platform != 'win32'

so pip install 'litellm[proxy]' does tr…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@hasan4791
Comment options

Answer selected by hasan4791
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants