diff --git a/lib/core/services/api_service.dart b/lib/core/services/api_service.dart index dc3f31d..4ab7266 100644 --- a/lib/core/services/api_service.dart +++ b/lib/core/services/api_service.dart @@ -2863,7 +2863,9 @@ class ApiService { // Check if memory is enabled in user's OpenWebUI settings // This syncs with the user's preference from the web interface - final bool memoryEnabled = userSettings?['memory'] == true; + // Memory setting is stored in ui.memory (matches OpenWebUI web client) + final uiMemorySettings = userSettings?['ui'] as Map?; + final bool memoryEnabled = uiMemorySettings?['memory'] == true; if (enableWebSearch || enableImageGeneration || memoryEnabled) { data['features'] = {