Remove deprecated send_transcription_frames param from AWSNovaSonicLLMService

This commit is contained in:
Mark Backman
2026-03-31 23:01:23 -04:00
parent bc4bbb1895
commit 52ece87ac9

View File

@@ -258,7 +258,6 @@ class AWSNovaSonicLLMService(LLMService):
settings: Optional[Settings] = None, settings: Optional[Settings] = None,
system_instruction: Optional[str] = None, system_instruction: Optional[str] = None,
tools: Optional[ToolsSchema] = None, tools: Optional[ToolsSchema] = None,
send_transcription_frames: bool = True,
**kwargs, **kwargs,
): ):
"""Initializes the AWS Nova Sonic LLM service. """Initializes the AWS Nova Sonic LLM service.
@@ -302,12 +301,6 @@ class AWSNovaSonicLLMService(LLMService):
.. deprecated:: 0.0.105 .. deprecated:: 0.0.105
Use ``settings=AWSNovaSonicLLMService.Settings(system_instruction=...)`` instead. Use ``settings=AWSNovaSonicLLMService.Settings(system_instruction=...)`` instead.
tools: Available tools/functions for the model to use. tools: Available tools/functions for the model to use.
send_transcription_frames: Whether to emit transcription frames.
.. deprecated:: 0.0.91
This parameter is deprecated and will be removed in a future version.
Transcription frames are always sent.
**kwargs: Additional arguments passed to the parent LLMService. **kwargs: Additional arguments passed to the parent LLMService.
""" """
# 1. Initialize default_settings with hardcoded defaults # 1. Initialize default_settings with hardcoded defaults
@@ -391,18 +384,6 @@ class AWSNovaSonicLLMService(LLMService):
) )
self._settings.endpointing_sensitivity = None self._settings.endpointing_sensitivity = None
if not send_transcription_frames:
import warnings
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"`send_transcription_frames` is deprecated and will be removed in a future version. "
"Transcription frames are always sent.",
DeprecationWarning,
stacklevel=2,
)
self._context: Optional[LLMContext] = None self._context: Optional[LLMContext] = None
self._stream: Optional[ self._stream: Optional[
DuplexEventStream[ DuplexEventStream[