From ec25e1678460e81c185ec957ac1c52df13a3ed2e Mon Sep 17 00:00:00 2001 From: Rayan Pal <90289028+theonlypal@users.noreply.github.com> Date: Mon, 12 Jan 2026 02:51:35 -0800 Subject: [PATCH] fix: add created_at/updated_at fields to LiteLLM_ProxyModelTable (#18937) The Pydantic model was missing these timestamp fields that exist in the Prisma schema. This caused the UI to display "Unknown date" for models added via the dashboard, even though the data was being stored in the DB. The fields were being read in get_model_info_with_id() using getattr(), but since they weren't defined in the Pydantic model, getattr() always returned None. Fixes #15487 --- litellm/proxy/_types.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litellm/proxy/_types.py b/litellm/proxy/_types.py index 09c8bb562f7..8c0a2e6ae2a 100644 --- a/litellm/proxy/_types.py +++ b/litellm/proxy/_types.py @@ -993,7 +993,9 @@ class LiteLLM_ProxyModelTable(LiteLLMPydanticObjectBase): model_name: str litellm_params: dict model_info: dict + created_at: Optional[datetime] = None created_by: str + updated_at: Optional[datetime] = None updated_by: str @model_validator(mode="before")