mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-19 00:01:29 +00:00
Move key/team/org logging-exporter assignments out of the untyped metadata JSON blob into a typed logging_exporters String[] column on LiteLLM_VerificationToken, LiteLLM_TeamTable, and LiteLLM_OrganizationTable (plus the Deleted* mirrors), matching the existing policies/access_group_ids column convention rather than burying a named-resource list in generic metadata. The request-time resolver reads each identity level from its own column via get_key_object / get_team_object / get_org_object. The six write paths (key generate/update/regenerate, team new/update, org new/update) accept a typed logging_exporters field, gate it through the shared visibility predicate via a thin validate_logging_exporter_field adapter (so the assignment validator and its tests are unchanged), and persist it to the column. Keys persist it like access_group_ids (a real column), not like policies (which is tucked into metadata). The typed optional field also removes the metadata removal-via-omission attack surface: omitting the field means no change. Round-trip validated against a real Postgres for team and key; regression tests cover the resolver reading columns and the field adapter's gating. |
||
|---|---|---|
| .. | ||
| dist | ||
| litellm_proxy_extras | ||
| tests | ||
| build_and_publish.md | ||
| LICENSE | ||
| migration_runbook.md | ||
| pyproject.toml | ||
| README.md | ||
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