style(gemini-realtime): wrap overlong docstrings to the 120 char limit

This commit is contained in:
Yucheng Zhu 2026-08-26 12:54:44 -07:00
parent 002407af90
commit 8e1dcf02ea
2 changed files with 8 additions and 2 deletions

View file

@ -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

View file

@ -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"})