mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-09 22:31:41 +00:00
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
This commit is contained in:
parent
dd299c93c2
commit
ec25e16784
1 changed files with 2 additions and 0 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue