llm_response: deprecate old LLMUserAggregatorParams and LLMAssistantAggregatorParams
This commit is contained in:
@@ -67,6 +67,10 @@ from pipecat.utils.time import time_now_iso8601
|
|||||||
class LLMUserAggregatorParams:
|
class LLMUserAggregatorParams:
|
||||||
"""Parameters for configuring LLM user aggregation behavior.
|
"""Parameters for configuring LLM user aggregation behavior.
|
||||||
|
|
||||||
|
.. deprecated:: 0.0.99
|
||||||
|
This class is deprecated, use the new universal `LLMContext` and
|
||||||
|
`LLMContextAggregatorPair`.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
aggregation_timeout: Maximum time in seconds to wait for additional
|
aggregation_timeout: Maximum time in seconds to wait for additional
|
||||||
transcription content before pushing aggregated result. This
|
transcription content before pushing aggregated result. This
|
||||||
@@ -77,17 +81,26 @@ class LLMUserAggregatorParams:
|
|||||||
enable_emulated_vad_interruptions: When True, allows emulated VAD events
|
enable_emulated_vad_interruptions: When True, allows emulated VAD events
|
||||||
to interrupt the bot when it's speaking. When False, emulated speech
|
to interrupt the bot when it's speaking. When False, emulated speech
|
||||||
is ignored while the bot is speaking.
|
is ignored while the bot is speaking.
|
||||||
|
enable_user_speaking_frames: [DO NOT USE] added for temporary backwards
|
||||||
|
compatibility.
|
||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
aggregation_timeout: float = 0.5
|
aggregation_timeout: float = 0.5
|
||||||
turn_emulated_vad_timeout: float = 0.8
|
turn_emulated_vad_timeout: float = 0.8
|
||||||
enable_emulated_vad_interruptions: bool = False
|
enable_emulated_vad_interruptions: bool = False
|
||||||
|
# Added for backwards compatibility.
|
||||||
|
enable_user_speaking_frames: bool = True
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class LLMAssistantAggregatorParams:
|
class LLMAssistantAggregatorParams:
|
||||||
"""Parameters for configuring LLM assistant aggregation behavior.
|
"""Parameters for configuring LLM assistant aggregation behavior.
|
||||||
|
|
||||||
|
.. deprecated:: 0.0.99
|
||||||
|
This class is deprecated, use the new universal `LLMContext` and
|
||||||
|
`LLMContextAggregatorPair`.
|
||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
expect_stripped_words: Whether to expect and handle stripped words
|
expect_stripped_words: Whether to expect and handle stripped words
|
||||||
in text frames by adding spaces between tokens. This parameter is
|
in text frames by adding spaces between tokens. This parameter is
|
||||||
|
|||||||
Reference in New Issue
Block a user