mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
style(gemini-realtime): wrap overlong docstrings to the 120 char limit
This commit is contained in:
parent
002407af90
commit
8e1dcf02ea
2 changed files with 8 additions and 2 deletions
|
|
@ -111,7 +111,10 @@ class GeminiRealtimeConfig(BaseRealtimeConfig):
|
|||
return True
|
||||
|
||||
def _strip_native_audio_speech_config(self) -> bool:
|
||||
"""Google AI Studio native-audio Live was never verified to accept ``speechConfig`` on setup; Vertex AI accepts it."""
|
||||
"""Google AI Studio native-audio Live was never verified to accept ``speechConfig`` on setup.
|
||||
|
||||
Vertex AI accepts it and reads the requested voice.
|
||||
"""
|
||||
return True
|
||||
|
||||
@staticmethod
|
||||
|
|
|
|||
|
|
@ -1868,7 +1868,10 @@ def test_is_setup_message_and_is_content_message():
|
|||
|
||||
|
||||
def test_map_openai_params_maps_stock_voice_case_insensitively():
|
||||
"""Regression: OpenAI stock voices map to Gemini prebuilt voices regardless of casing; unknown names pass through."""
|
||||
"""Regression: OpenAI stock voices map to Gemini prebuilt voices regardless of casing.
|
||||
|
||||
Unknown names pass through verbatim.
|
||||
"""
|
||||
cfg = GeminiRealtimeConfig()
|
||||
|
||||
mapped = cfg.map_openai_params(optional_params={}, non_default_params={"voice": "Alloy"})
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue