This commit is contained in:
Timothy Jaeryang Baek
2026-07-01 02:49:33 -05:00
parent 650b817925
commit 0016266c06
2 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -284,7 +284,7 @@ def validate_memory_operations(form_data) -> list[dict]:
def model_allows_memory(model: dict | None) -> bool:
return (model or {}).get('info', {}).get('meta', {}).get('capabilities', {}).get('memory', True)
return ((model or {}).get('info', {}).get('meta', {}).get('capabilities') or {}).get('memory', True)
async def add_memory_context(request, form_data: dict, user, model: dict | None = None):