Add optional body parameter to WebsocketRunnerArguments
This commit is contained in:
@@ -27,6 +27,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
corresponding example in `pipecat-examples` to see how to pass custom data
|
corresponding example in `pipecat-examples` to see how to pass custom data
|
||||||
to your bot.
|
to your bot.
|
||||||
|
|
||||||
|
- Added `body` to the `WebsocketRunnerArguments` as an optional parameter.
|
||||||
|
Custom `body` information can be passed from the server into the bot file via
|
||||||
|
the `bot()` method using this new parameter.
|
||||||
|
|
||||||
- Added video streaming support to `LiveKitTransport`.
|
- Added video streaming support to `LiveKitTransport`.
|
||||||
|
|
||||||
- Added `OpenAIRealtimeLLMService` and `AzureRealtimeLLMService` which provide
|
- Added `OpenAIRealtimeLLMService` and `AzureRealtimeLLMService` which provide
|
||||||
|
|||||||
@@ -51,9 +51,11 @@ class WebSocketRunnerArguments(RunnerArguments):
|
|||||||
|
|
||||||
Parameters:
|
Parameters:
|
||||||
websocket: WebSocket connection for audio streaming
|
websocket: WebSocket connection for audio streaming
|
||||||
|
body: Additional request data
|
||||||
"""
|
"""
|
||||||
|
|
||||||
websocket: WebSocket
|
websocket: WebSocket
|
||||||
|
body: Optional[Any] = field(default_factory=dict)
|
||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
|
|||||||
Reference in New Issue
Block a user