Make a bit of code clearer

This commit is contained in:
Paul Kompfner
2025-10-08 16:09:10 -04:00
parent f09e4e238b
commit 402e019ae2

View File

@@ -527,7 +527,7 @@ class GeminiMultimodalLiveLLMService(LLMService):
self, self,
*, *,
api_key: str, api_key: str,
base_url: str = "generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent", base_url: Optional[str] = None,
model="models/gemini-2.0-flash-live-001", model="models/gemini-2.0-flash-live-001",
voice_id: str = "Charon", voice_id: str = "Charon",
start_audio_paused: bool = False, start_audio_paused: bool = False,
@@ -565,10 +565,7 @@ class GeminiMultimodalLiveLLMService(LLMService):
**kwargs: Additional arguments passed to parent LLMService. **kwargs: Additional arguments passed to parent LLMService.
""" """
# Check for deprecated parameter usage # Check for deprecated parameter usage
if ( if base_url is not None:
base_url
!= "generativelanguage.googleapis.com/ws/google.ai.generativelanguage.v1beta.GenerativeService.BidiGenerateContent"
):
import warnings import warnings
with warnings.catch_warnings(): with warnings.catch_warnings():