fix:移除b64

This commit is contained in:
SengokuCola
2025-06-14 16:04:07 +08:00
parent 0ef903ab32
commit b957e482e8
2 changed files with 4 additions and 2 deletions

View File

@@ -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,

View File

@@ -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"