refactor: switch pipeline_cfg related fields to new pipeline config

This commit is contained in:
Junyan Qin
2025-04-03 17:57:51 +08:00
parent 472d472bc1
commit 7f66efcdd5
13 changed files with 62 additions and 38 deletions

View File

@@ -15,7 +15,7 @@ class ConversationMessageTruncator(stage.PipelineStage):
trun: truncator.Truncator
async def initialize(self, pipeline_config: dict):
use_method = self.ap.pipeline_cfg.data['msg-truncate']['method']
use_method = "round"
for trun in truncator.preregistered_truncators:
if trun.name == use_method: