mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix linting
This commit is contained in:
parent
1d62ca0e23
commit
b6e13cb70a
1 changed files with 3 additions and 1 deletions
|
|
@ -57,7 +57,9 @@ class UserApiKeyCache(DualCache):
|
|||
def set_cache(self, key, value, local_only: bool = False, **kwargs): # type: ignore[override]
|
||||
model_type = cast(Optional[Type[BaseModel]], kwargs.pop("model_type", None))
|
||||
payload = CacheCodec.serialize(value, model_type=model_type)
|
||||
return super().set_cache(key=key, value=payload, local_only=local_only, **kwargs)
|
||||
return super().set_cache(
|
||||
key=key, value=payload, local_only=local_only, **kwargs
|
||||
)
|
||||
|
||||
async def async_set_cache(self, key, value, local_only: bool = False, **kwargs): # type: ignore[override]
|
||||
model_type = cast(Optional[Type[BaseModel]], kwargs.pop("model_type", None))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue