mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-28 08:49:42 +02:00
feat: enable context summarization
This commit is contained in:
parent
501d06c00d
commit
56763a4527
7 changed files with 232 additions and 5 deletions
|
|
@ -679,6 +679,10 @@ async def _run_pipeline(
|
|||
workflow_id, workflow.organization_id
|
||||
)
|
||||
|
||||
context_compaction_enabled = (workflow.workflow_configurations or {}).get(
|
||||
"context_compaction_enabled", False
|
||||
)
|
||||
|
||||
engine = PipecatEngine(
|
||||
llm=llm,
|
||||
workflow=workflow_graph,
|
||||
|
|
@ -689,6 +693,7 @@ async def _run_pipeline(
|
|||
embeddings_model=embeddings_model,
|
||||
embeddings_base_url=embeddings_base_url,
|
||||
has_recordings=has_recordings,
|
||||
context_compaction_enabled=context_compaction_enabled,
|
||||
)
|
||||
|
||||
# Create pipeline components
|
||||
|
|
|
|||
|
|
@ -159,8 +159,7 @@ def create_stt_service(
|
|||
)
|
||||
elif user_config.stt.provider == ServiceProviders.ASSEMBLYAI.value:
|
||||
language = getattr(user_config.stt, "language", None)
|
||||
pipecat_language = _to_language_enum(language, default=Language.EN)
|
||||
settings_kwargs = {"model": user_config.stt.model, "language": pipecat_language}
|
||||
settings_kwargs = {"model": user_config.stt.model, "language": language}
|
||||
if keyterms:
|
||||
settings_kwargs["keyterms_prompt"] = keyterms
|
||||
return AssemblyAISTTService(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue