diff --git a/src/pipecat/frames/frames.py b/src/pipecat/frames/frames.py index 922a3c6af..a27bb780e 100644 --- a/src/pipecat/frames/frames.py +++ b/src/pipecat/frames/frames.py @@ -1565,7 +1565,7 @@ class UserImageRawFrame(InputImageRawFrame): user_id: Identifier of the user who provided this image. text: An optional text associated to this image. append_to_context: Whether the requested image should be appended to the LLM context. - request: [DEPRECATED] The original image request frame if this is a response. + request: The original image request frame if this is a response. """ user_id: str = "" @@ -1573,20 +1573,6 @@ class UserImageRawFrame(InputImageRawFrame): append_to_context: Optional[bool] = None request: Optional[UserImageRequestFrame] = None - def __post_init__(self): - super().__post_init__() - - if self.request: - import warnings - - with warnings.catch_warnings(): - warnings.simplefilter("always") - warnings.warn( - "`UserImageRawFrame` field `request` is deprecated.", - DeprecationWarning, - stacklevel=2, - ) - def __str__(self): pts = format_pts(self.pts) return f"{self.name}(pts: {pts}, user: {self.user_id}, source: {self.transport_source}, size: {self.size}, format: {self.format}, text: {self.text}, append_to_context: {self.append_to_context})" diff --git a/src/pipecat/transports/daily/transport.py b/src/pipecat/transports/daily/transport.py index 147a9a111..203cbb9fa 100644 --- a/src/pipecat/transports/daily/transport.py +++ b/src/pipecat/transports/daily/transport.py @@ -27,7 +27,6 @@ from pipecat.frames.frames import ( CancelFrame, ControlFrame, EndFrame, - ErrorFrame, Frame, InputAudioRawFrame, InputTransportMessageFrame, @@ -1844,7 +1843,6 @@ class DailyInputTransport(BaseInputTransport): format=video_frame.color_format, text=request_frame.text if request_frame else None, append_to_context=request_frame.append_to_context if request_frame else None, - # Deprecated fields below. request=request_frame, ) frame.transport_source = video_source diff --git a/src/pipecat/transports/smallwebrtc/transport.py b/src/pipecat/transports/smallwebrtc/transport.py index 6b6a14829..e9a07cf40 100644 --- a/src/pipecat/transports/smallwebrtc/transport.py +++ b/src/pipecat/transports/smallwebrtc/transport.py @@ -680,7 +680,6 @@ class SmallWebRTCInputTransport(BaseInputTransport): format=video_frame.format, text=request_text, append_to_context=add_to_context, - # Deprecated fields below. request=request_frame, ) image_frame.transport_source = video_source