From 1da6aa7ef1e21ef0ac210354f7ab7ff0b53af9a0 Mon Sep 17 00:00:00 2001 From: Yamac Ay Date: Thu, 3 Sep 2026 14:37:03 +0200 Subject: [PATCH] fix: remove model_dump --- litellm/llms/sap/chat/models.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/litellm/llms/sap/chat/models.py b/litellm/llms/sap/chat/models.py index b90c87b492e..11695b02055 100644 --- a/litellm/llms/sap/chat/models.py +++ b/litellm/llms/sap/chat/models.py @@ -36,10 +36,6 @@ class CacheControl(BaseModel): type: Literal["ephemeral"] ttl: str | None = None - def model_dump(self, **kwargs: object) -> dict: # kwargs-ok: forwarded verbatim to pydantic model_dump - kwargs["exclude_unset"] = False # rebind-ok: sets serialization option before forwarding to pydantic - return super().model_dump(**kwargs) # pyright: ignore[reportArgumentType] # kwargs forwarded verbatim to pydantic model_dump - @model_serializer(mode="wrap") def _serialize( self, handler: SerializerFunctionWrapHandler, info: SerializationInfo