mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-13 01:06:03 +00:00
refactor: switch pipeline_cfg related fields to new pipeline config
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user