mirror of
https://github.com/BerriAI/litellm.git
synced 2026-11-12 08:42:18 +00:00
fix: Satisfy strict lint for stream option access
This commit is contained in:
parent
c085658bf6
commit
adc58ae31f
1 changed files with 2 additions and 2 deletions
|
|
@ -557,8 +557,8 @@ class CustomStreamWrapper:
|
|||
def check_send_stream_usage(self, stream_options: object) -> bool:
|
||||
if stream_options is None:
|
||||
return False
|
||||
get_option: Final[Callable[[str, object], object]] = getattr(stream_options, "get")
|
||||
return get_option("include_usage", False) is True
|
||||
get_option: Final[Callable[[str, object], object] | None] = getattr(stream_options, "get", None)
|
||||
return get_option is not None and get_option("include_usage", False) is True
|
||||
|
||||
def check_is_function_call(self, logging_obj) -> bool:
|
||||
from litellm.litellm_core_utils.prompt_templates.common_utils import (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue