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:
@@ -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")
|
||||||
|
|||||||
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user