feat: persist photos and enrich conversation history
This commit is contained in:
@@ -61,9 +61,10 @@ class UserInput:
|
||||
|
||||
@property
|
||||
def transcript_text(self) -> str:
|
||||
if not self.has_camera_frame:
|
||||
return self.text
|
||||
return f"{self.text}\n已发送一张图片".strip()
|
||||
# Images are represented as structured media records. A synthetic
|
||||
# sentence would be shown as chat text and persisted as if the user had
|
||||
# said it, while adding no visual information for the model.
|
||||
return self.text
|
||||
|
||||
|
||||
class UserInputError(ValueError):
|
||||
|
||||
Reference in New Issue
Block a user