remove unused imports

This commit is contained in:
Aleix Conchillo Flaqué
2024-03-20 14:42:05 -07:00
parent 42e25ccd13
commit 0666dd1194
23 changed files with 11 additions and 73 deletions

View File

@@ -5,10 +5,8 @@ from dailyai.pipeline.frame_processor import FrameProcessor
from dailyai.pipeline.frames import (
EndFrame,
AudioFrame,
EndPipeFrame,
Frame,
ImageFrame,
LLMMessagesQueueFrame,
LLMResponseEndFrame,
LLMResponseStartFrame,
@@ -20,9 +18,7 @@ from dailyai.pipeline.frames import (
from dailyai.pipeline.pipeline import Pipeline
from dailyai.services.ai_services import AIService
from typing import AsyncGenerator, Callable, Coroutine, List
from dailyai.services.openai_llm_context import OpenAILLMContext
from typing import AsyncGenerator, Coroutine, List
class ResponseAggregator(FrameProcessor):
@@ -349,6 +345,8 @@ class GatedAggregator(FrameProcessor):
Yields gate-opening frame before any accumulated frames, then ensuing frames
until and not including the gate-closed frame.
>>> from dailyai.pipeline.frames import ImageFrame
>>> async def print_frames(aggregator, frame):
... async for frame in aggregator.process_frame(frame):
... if isinstance(frame, TextFrame):