feat(memory-config): add V1 emotion and reflection engine config endpoints
Add read/update endpoints for emotion engine config (read_config_emotion, update_config_emotion) Add read/update endpoints for reflection engine config (read_config_reflection, update_config_reflection) Add EmotionConfigUpdateRequest and ReflectionConfigUpdateRequest schemas Reuse emotion_config_controller and memory_reflection_controller with ownership verification
This commit is contained in:
@@ -328,7 +328,7 @@ class MemoryConfigRepository:
|
||||
if not db_config:
|
||||
db_logger.warning(f"记忆配置不存在: config_id={update.config_id}")
|
||||
return None
|
||||
|
||||
#TODO:部分更新没有用patch请求,是在Repository层中用先查再部分更新的方式实现的,后续可以考虑改成patch请求更符合RESTful设计原则
|
||||
update_data = update.model_dump(exclude_unset=True)
|
||||
update_data.pop("config_id", None)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user