Merge pull request #1941 from pipecat-ai/vp-observer-up

chore: move observers arg in p2p-webrtc example; add deprecated to in…
This commit is contained in:
Mark Backman
2025-06-02 11:17:48 -04:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -122,8 +122,8 @@ async def run_bot(webrtc_connection):
pipeline, pipeline,
params=PipelineParams( params=PipelineParams(
allow_interruptions=True, allow_interruptions=True,
observers=[RTVIObserver(rtvi)],
), ),
observers=[RTVIObserver(rtvi)],
) )
@rtvi.event_handler("on_client_ready") @rtvi.event_handler("on_client_ready")

View File

@@ -55,7 +55,7 @@ class PipelineParams(BaseModel):
enable_metrics: Whether to enable metrics collection. enable_metrics: Whether to enable metrics collection.
enable_usage_metrics: Whether to enable usage metrics. enable_usage_metrics: Whether to enable usage metrics.
heartbeats_period_secs: Period between heartbeats in seconds. heartbeats_period_secs: Period between heartbeats in seconds.
observers: List of observers for monitoring pipeline execution. observers: [deprecated] Use `observers` arg in `PipelineTask` class.
report_only_initial_ttfb: Whether to report only initial time to first byte. report_only_initial_ttfb: Whether to report only initial time to first byte.
send_initial_empty_metrics: Whether to send initial empty metrics. send_initial_empty_metrics: Whether to send initial empty metrics.
start_metadata: Additional metadata for pipeline start. start_metadata: Additional metadata for pipeline start.