mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-05 02:41:56 +00:00
style(gemini realtime): satisfy ruff format on the rate-range guard
CI runs ruff format --check over changed litellm/**/*.py; the multi-line condition on the accepted-rate check collapses to one line under the repo's 88-column config.
This commit is contained in:
parent
231ba81961
commit
274d268e28
1 changed files with 1 additions and 3 deletions
|
|
@ -495,9 +495,7 @@ class GeminiRealtimeConfig(BaseRealtimeConfig):
|
|||
# bool is an int subclass, so exclude it explicitly.
|
||||
if isinstance(rate, bool) or not isinstance(rate, int):
|
||||
return
|
||||
if not (
|
||||
MIN_ACCEPTED_INPUT_AUDIO_SAMPLE_RATE_HZ <= rate <= MAX_ACCEPTED_INPUT_AUDIO_SAMPLE_RATE_HZ
|
||||
):
|
||||
if not (MIN_ACCEPTED_INPUT_AUDIO_SAMPLE_RATE_HZ <= rate <= MAX_ACCEPTED_INPUT_AUDIO_SAMPLE_RATE_HZ):
|
||||
verbose_logger.warning(
|
||||
"Gemini Realtime: ignoring declared input audio rate %s, outside the accepted "
|
||||
"%s-%s Hz range; keeping %s Hz",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue