litellm/litellm-proxy-extras
Ashwin Upadhyay c5e2c6cc63 fix(proxy): greptile review fixes
four things from the bot review:

1. validate_models_exist bailed early with (False, all_names) when
   llm_router was None - never even checked known_access_groups.
   db-only setups couldn't create a group of groups at all. now
   we check known_groups even without a router.

2. get_group_memberships_from_db only caught AttributeError +
   TypeError, so a transient DB error would 500 every /v1/models
   call. broadened to Exception - the fallback now actually
   catches what the docstring says it does.

3. delete_group_membership_edges does WHERE parent OR child but
   only parent had an index. added @@index([child_group]) + a
   tiny migration.

4. get_group_memberships_from_db was being called on every
   model-listing request. added a 60s in-process TTL cache via
   get_cached_group_memberships, with explicit invalidation on
   every membership write. same shape as the existing
   llm_router.get_model_access_groups() cache.

9 tests for the above.

refs #28032
2026-05-17 01:13:47 +05:30
..
dist adding build 2026-03-21 22:55:04 -07:00
litellm_proxy_extras fix(proxy): greptile review fixes 2026-05-17 01:13:47 +05:30
tests [Fix] v2 resolver: swallow non-connection DB errors; wrap resolve failures 2026-04-21 15:53:07 -07:00
build_and_publish.md build: migrate packaging, CI, and Docker from Poetry to uv (#25007) 2026-04-09 11:46:23 -07:00
LICENSE install prisma migration files - connects litellm proxy to litellm's prisma migration files (#9637) 2025-03-29 15:27:09 -07:00
migration_runbook.md [Infra] Add freshness and destructive guards to migration workflow 2026-04-21 12:00:23 -07:00
pyproject.toml bump: version 0.4.71 → 0.4.72 2026-05-13 21:51:11 -07:00
README.md build: migrate packaging, CI, and Docker from Poetry to uv (#25007) 2026-04-09 11:46:23 -07:00

Additional files for the proxy. Reduces the size of the main litellm package.

Currently, only stores the migration.sql files for litellm-proxy.

To install, run:

uv add litellm-proxy-extras

OR

uv tool install 'litellm[proxy]' # installs litellm-proxy-extras and other proxy dependencies

To use the migrations, run:

litellm --use_prisma_migrate