File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/pipecat/transports/smallwebrtc Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ reason")`.
3333
3434### Fixed
3535
36+ - Fixed an issue where the ` SmallWebRTCRequest ` dataclass in runner would scrub
37+ arbitrary request data from client due to camelCase typing. This fixes data
38+ passthrough for JS clients where ` APIRequest ` is used.
39+
3640- Fixed ` GeminiLiveLLMService ` session resumption after a connection timeout.
3741
3842- ` GeminiLiveLLMService ` now properly supports context-provided system
Original file line number Diff line number Diff line change @@ -40,6 +40,14 @@ class SmallWebRTCRequest:
4040 request_data : Optional [Any ] = None
4141
4242
43+ @classmethod
44+ def from_dict (cls , data : dict ):
45+ """Accept both snake_case and camelCase for the request_data field."""
46+ if "requestData" in data and "request_data" not in data :
47+ data ["request_data" ] = data .pop ("requestData" )
48+ return cls (** data )
49+
50+
4351@dataclass
4452class IceCandidate :
4553 """The remote ice candidate object received from the peer connection.
You can’t perform that action at this time.
0 commit comments