mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-07 08:26:10 +00:00
- 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 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| ui_settings_extensions.py | ||