Merge pull request #4532 from pipecat-ai/mb/cleanup-logging-after-smart-text-handling
Clean up smart text logging
This commit is contained in:
@@ -529,7 +529,7 @@ class RTVIObserver(BaseObserver):
|
|||||||
|
|
||||||
isTTS = isinstance(frame, TTSTextFrame)
|
isTTS = isinstance(frame, TTSTextFrame)
|
||||||
if agg_type is not AggregationType.WORD:
|
if agg_type is not AggregationType.WORD:
|
||||||
logger.debug(f"{self} Aggregated LLM text: {text}, {agg_type} spoken:{isTTS}")
|
logger.trace(f"{self} Aggregated LLM text: {text}, {agg_type} spoken:{isTTS}")
|
||||||
|
|
||||||
if self._params.bot_output_enabled:
|
if self._params.bot_output_enabled:
|
||||||
message = RTVI.BotOutputMessage(
|
message = RTVI.BotOutputMessage(
|
||||||
|
|||||||
@@ -86,7 +86,6 @@ class WordCompletionTracker:
|
|||||||
self._overflow_word: str | None = None
|
self._overflow_word: str | None = None
|
||||||
self._llm_consumed: str | None = None
|
self._llm_consumed: str | None = None
|
||||||
self._frame_word: str | None = None
|
self._frame_word: str | None = None
|
||||||
logger.debug(f"WordCompletionTracker: {self._tts_normalized}")
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _normalize(text: str) -> str:
|
def _normalize(text: str) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user