修复遗留合并BUG
This commit is contained in:
@@ -505,7 +505,7 @@ class EmotionAnalyticsService:
|
||||
)
|
||||
config_service = MemoryConfigService(db)
|
||||
memory_config = config_service.load_memory_config(
|
||||
config_id=int(config_id),
|
||||
config_id=(config_id),
|
||||
service_name="EmotionAnalyticsService.generate_emotion_suggestions"
|
||||
)
|
||||
from app.core.memory.utils.llm.llm_utils import MemoryClientFactory
|
||||
|
||||
@@ -61,7 +61,7 @@ def _validate_config_id(config_id):
|
||||
|
||||
# Fall back to integer parsing
|
||||
try:
|
||||
parsed_id = int(config_id_stripped)
|
||||
parsed_id = config_id_stripped
|
||||
if parsed_id <= 0:
|
||||
raise InvalidConfigError(
|
||||
f"Configuration ID must be positive: {parsed_id}",
|
||||
|
||||
@@ -92,17 +92,15 @@ class MemoryPerceptualService:
|
||||
|
||||
result = {
|
||||
"id": str(memory.id),
|
||||
"perceptual_type": perceptual_type,
|
||||
"file_name": memory.file_name,
|
||||
"file_path": memory.file_path,
|
||||
"file_ext": memory.file_ext,
|
||||
"storage_service": memory.storage_service,
|
||||
"meta_data": memory.meta_data,
|
||||
"storage_type": memory.storage_service,
|
||||
"summary": memory.summary,
|
||||
"keywords": content.keywords,
|
||||
"topic": content.topic,
|
||||
"domain": content.domain,
|
||||
"created_time": int(memory.created_time.timestamp()*1000),
|
||||
**detail
|
||||
}
|
||||
|
||||
business_logger.info(
|
||||
|
||||
Reference in New Issue
Block a user