(api): update memoryeval from user preferences

This commit is contained in:
cogwheel0
2025-12-17 08:13:49 +05:30
parent 9ab341fad1
commit 931089ef59

View File

@@ -2863,7 +2863,9 @@ class ApiService {
// Check if memory is enabled in user's OpenWebUI settings // Check if memory is enabled in user's OpenWebUI settings
// This syncs with the user's preference from the web interface // 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<String, dynamic>?;
final bool memoryEnabled = uiMemorySettings?['memory'] == true;
if (enableWebSearch || enableImageGeneration || memoryEnabled) { if (enableWebSearch || enableImageGeneration || memoryEnabled) {
data['features'] = { data['features'] = {