mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-14 23:21:35 +00:00
fix lint formating errors
This commit is contained in:
parent
f5cd76b047
commit
c5fe741d88
1 changed files with 6 additions and 2 deletions
|
|
@ -173,7 +173,9 @@ class PromptCachingCache:
|
|||
tools: list[ChatCompletionToolParam] | None = None,
|
||||
) -> int:
|
||||
cacheable_prefix: Final = (
|
||||
PromptCachingCache.extract_cacheable_prefix(messages) if messages is not None else [] # mutable-ok: TTL helper requires a concrete list
|
||||
PromptCachingCache.extract_cacheable_prefix(messages)
|
||||
if messages is not None
|
||||
else [] # mutable-ok: TTL helper requires a concrete list
|
||||
)
|
||||
return PromptCachingCache.get_prompt_caching_ttl_from_prefix(cacheable_prefix, tools)
|
||||
|
||||
|
|
@ -182,7 +184,9 @@ class PromptCachingCache:
|
|||
cacheable_prefix: list[AllMessageValues],
|
||||
tools: list[ChatCompletionToolParam] | None,
|
||||
) -> int:
|
||||
cacheable_tools: Final = PromptCachingCache.extract_cacheable_tools(tools or []) # mutable-ok: tool API requires a concrete list
|
||||
cacheable_tools: Final = PromptCachingCache.extract_cacheable_tools(
|
||||
tools or [] # mutable-ok: tool API requires a concrete list
|
||||
)
|
||||
cache_control_values: Final = tuple(
|
||||
cache_control
|
||||
for message in cacheable_prefix
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue