fix:移除b64
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user