mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-11 08:38:24 +00:00
Fix Ruff formatting
This commit is contained in:
parent
26ac93887d
commit
b3af5f8c0f
1 changed files with 1 additions and 3 deletions
|
|
@ -719,9 +719,7 @@ class Cache:
|
|||
|
||||
def _get_ttl_for_call_type(self, kwargs: Mapping[str, object]) -> float | None:
|
||||
if self.call_type_ttl:
|
||||
call_type: Final = kwargs.get("call_type") or (
|
||||
"embedding" if kwargs.get("embedding") is True else None
|
||||
)
|
||||
call_type: Final = kwargs.get("call_type") or ("embedding" if kwargs.get("embedding") is True else None)
|
||||
if isinstance(call_type, str):
|
||||
if call_type in self.call_type_ttl:
|
||||
return self.call_type_ttl[call_type]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue