tests: langchain fixes
This commit is contained in:
@@ -32,8 +32,7 @@ from pipecat.processors.frameworks.langchain import LangchainProcessor
|
|||||||
class TestLangchain(unittest.IsolatedAsyncioTestCase):
|
class TestLangchain(unittest.IsolatedAsyncioTestCase):
|
||||||
class MockProcessor(FrameProcessor):
|
class MockProcessor(FrameProcessor):
|
||||||
def __init__(self, name):
|
def __init__(self, name):
|
||||||
super().__init__()
|
super().__init__(name=name)
|
||||||
self.name = name
|
|
||||||
self.token: list[str] = []
|
self.token: list[str] = []
|
||||||
# Start collecting tokens when we see the start frame
|
# Start collecting tokens when we see the start frame
|
||||||
self.start_collecting = False
|
self.start_collecting = False
|
||||||
|
|||||||
Reference in New Issue
Block a user