litellm/enterprise/litellm_enterprise/proxy/ui_crud_endpoints
Yuneng Jiang 937d81331f
[Refactor] Proxy: tighten UI settings extras registry
- drop unused Any annotation on register_extra_ui_setting's field
  param; type it as FieldInfo and have enterprise callers construct
  FieldInfo directly (pydantic.Field's stub reports the default's
  type, which doesn't match FieldInfo)
- cache the effective UISettings class and invalidate it inside
  register_extra_ui_setting so GET /get/ui_settings does not rebuild
  a pydantic model on every request
- annotate _EXTRA_UI_SETTINGS_FIELDS with a concrete
  Dict[str, Tuple[Any, FieldInfo]] instead of bare Dict[str, tuple];
  the annotation remains Any because pydantic field annotations
  include generics (Optional[X], List[X]) that are not instances of
  type
2026-04-13 21:58:02 -07:00
..
__init__.py [Refactor] Proxy: move projects management to enterprise package 2026-04-13 21:41:12 -07:00
ui_settings_extensions.py [Refactor] Proxy: tighten UI settings extras registry 2026-04-13 21:58:02 -07:00