mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-28 01:32:17 +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
79577e1288
commit
2de23ad195
1 changed files with 1 additions and 3 deletions
|
|
@ -508,9 +508,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