chore: minor fixes

This commit is contained in:
Abhishek Kumar 2026-01-13 14:55:48 +05:30
parent 514d9c5238
commit 1f3b3e2e3c
6 changed files with 25 additions and 12 deletions

View file

@ -1,4 +1,4 @@
from typing import TYPE_CHECKING, Any, Awaitable, Callable, Optional, Union
from typing import TYPE_CHECKING, Awaitable, Callable, Optional, Union
from api.services.workflow.disposition_mapper import (
apply_disposition_mapping,
@ -57,7 +57,6 @@ class PipecatEngine:
task: Optional[PipelineTask] = None,
llm: Optional["LLMService"] = None,
context: Optional[LLMContext] = None,
tts: Optional[Any] = None,
transport: Optional[BaseTransport] = None,
workflow: WorkflowGraph,
call_context_vars: dict,
@ -67,7 +66,6 @@ class PipecatEngine:
self.task = task
self.llm = llm
self.context = context
self.tts = tts
self.transport = transport
self.workflow = workflow
self._call_context_vars = call_context_vars

View file

@ -75,7 +75,7 @@ def create_user_idle_callback(engine: "PipecatEngine"):
message = {
"role": "system",
"content": "The user has been quiet. We will be disconnecting the call now. Wish them a good day.",
"content": "The user has been quiet. We will be disconnecting the call now. Wish them a good day in the language that the user has been speaking so far.",
}
await user_idle.push_frame(LLMMessagesAppendFrame([message], run_llm=True))
await engine.send_end_task_frame(