UserImageRawFrame: rename add_to_context to append_to_context

This commit is contained in:
Aleix Conchillo Flaqué
2025-10-30 15:18:27 -07:00
parent 5e00133e64
commit 685d440206
10 changed files with 23 additions and 23 deletions

View File

@@ -1207,17 +1207,17 @@ class UserImageRequestFrame(SystemFrame):
Parameters:
user_id: Identifier of the user to request image from.
text: An optional text associated to the image request.
add_to_context: Whether the requested image should be added to an LLM context.
append_to_context: Whether the requested image should be appended to the LLM context.
video_source: Specific video source to capture from.
"""
user_id: str
text: Optional[str] = None
add_to_context: Optional[bool] = None
append_to_context: Optional[bool] = None
video_source: Optional[str] = None
def __str__(self):
return f"{self.name}(user: {self.user_id}, text: {self.text}, add_to_context: {self.add_to_context}, {self.video_source})"
return f"{self.name}(user: {self.user_id}, text: {self.text}, append_to_context: {self.append_to_context}, {self.video_source})"
@dataclass
@@ -1292,16 +1292,16 @@ class UserImageRawFrame(InputImageRawFrame):
Parameters:
user_id: Identifier of the user who provided this image.
text: An optional text associated to this image.
add_to_context: Whether this image should be added to an LLM context.
append_to_context: Whether the requested image should be appended to the LLM context.
"""
user_id: str = ""
text: Optional[str] = None
add_to_context: Optional[bool] = None
append_to_context: Optional[bool] = None
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}, add_to_context: {self.add_to_context})"
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})"
@dataclass