Merge pull request #204 from TomTom101/TomTom101/langchain

fix: Fixed imports, support new PipelineParams
This commit is contained in:
Aleix Conchillo Flaqué
2024-06-03 03:16:30 +08:00
committed by GitHub
2 changed files with 5 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ from pipecat.frames.frames import (LLMFullResponseEndFrame,
UserStoppedSpeakingFrame)
from pipecat.pipeline.pipeline import Pipeline
from pipecat.pipeline.runner import PipelineRunner
from pipecat.pipeline.task import PipelineTask
from pipecat.pipeline.task import PipelineParams, PipelineTask
from pipecat.processors.aggregators.llm_response import (
LLMAssistantResponseAggregator, LLMUserResponseAggregator)
from pipecat.processors.frame_processor import FrameProcessor
@@ -69,7 +69,7 @@ class TestLangchain(unittest.IsolatedAsyncioTestCase):
]
)
task = PipelineTask(pipeline)
task = PipelineTask(pipeline, PipelineParams(allow_interruptions=False))
await task.queue_frames(
[
UserStartedSpeakingFrame(),