diff --git a/src/chat/utils/utils_image.py b/src/chat/utils/utils_image.py index de5fe3cad..350fdd81e 100644 --- a/src/chat/utils/utils_image.py +++ b/src/chat/utils/utils_image.py @@ -158,6 +158,7 @@ class ImageManager: type="emoji", description=description, timestamp=current_timestamp, + # base64=image_base64, ) # logger.debug(f"保存表情包元数据: {file_path}") except Exception as e: @@ -229,6 +230,7 @@ class ImageManager: type="image", description=description, timestamp=current_timestamp, + # base64=image_base64, ) logger.debug(f"保存图片元数据: {file_path}") except Exception as e: @@ -408,7 +410,7 @@ class ImageManager: image_id=image_id, emoji_hash=image_hash, path=file_path, - base64=image_base64, + # base64=image_base64, type="image", timestamp=current_timestamp, vlm_processed=False, diff --git a/src/common/database/database_model.py b/src/common/database/database_model.py index 49d70acd7..eaa7e5403 100644 --- a/src/common/database/database_model.py +++ b/src/common/database/database_model.py @@ -189,7 +189,7 @@ class Images(BaseModel): emoji_hash = TextField(index=True) # 图像的哈希值 description = TextField(null=True) # 图像的描述 path = TextField(unique=True) # 图像文件的路径 - base64 = TextField() # 图片的base64编码 + # base64 = TextField() # 图片的base64编码 count = IntegerField(default=1) # 图片被引用的次数 timestamp = FloatField() # 时间戳 type = TextField() # 图像类型,例如 "emoji"