π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Merge branch 'ensu-fix' into updates-4-ensu
Prateek Sunal85e1fbc0e322
diff --cc mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/modelsettings/ModelSettingsScreen.ktindex eb69722ce0,2d852e39d6..c9fea23a89--- a/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/modelsettings/ModelSettingsScreen.kt+++ b/mobile/native/android/apps/ensu/app-ui/src/main/java/io/ente/ensu/modelsettings/ModelSettingsScreen.kt@@@ -236,13 -327,27 +327,27 @@@ private fun ExpandButton}}- private data class SuggestedModel(+ private data class ModelChoice(+ val id: String,val title: String,- val subtitle: String,- val url: String,- val mmproj: String?+ val url: String? = null,+ val mmproj: String? = null,+ val isDefault: Boolean = false,+ val isCustom: Boolean = false)- private const val DEFAULT_MODEL_NAME = "Qwen 3.5 2B (Q8_0)"+ private fun initialSelectionId(+ state: ModelSettingsState,+ choices: List<ModelChoice>+ ): String {+ if (!state.useCustomModel || state.modelUrl.isBlank()) return DEFAULT_OPTION_ID+ return choices.firstOrNull { !it.isCustom && it.url == state.modelUrl }?.id ?: CUSTOM_OPTION_ID+ }++ private const val DEFAULT_OPTION_ID = "default"+ private const val CUSTOM_OPTION_ID = "custom"-private const val DEFAULT_MODEL_NAME = "Qwen 3.5 2B (Q8_0)"++private const val DEFAULT_MODEL_NAME = "LFM 2.5 VL 1.6B (Q4_0)"private const val DEFAULT_MODEL_URL =-- "https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/Qwen3.5-2B-Q8_0.gguf?download=true"++ "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/LFM2.5-VL-1.6B-Q4_0.gguf"+ private const val DEFAULT_MMPROJ_URL =- "https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/mmproj-F16.gguf"++ "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/mmproj-LFM2.5-VL-1.6b-Q8_0.gguf"diff --cc mobile/native/android/apps/ensu/domain/src/main/kotlin/io/ente/ensu/domain/store/ModelSettingsActions.ktindex 3956c13c1a,ad939ffd4c..269fc452c7--- a/mobile/native/android/apps/ensu/domain/src/main/kotlin/io/ente/ensu/domain/store/ModelSettingsActions.kt+++ b/mobile/native/android/apps/ensu/domain/src/main/kotlin/io/ente/ensu/domain/store/ModelSettingsActions.kt@@@ -234,9 -330,9 +330,9 @@@ internal class ModelSettingsActionsprivate const val RETRY_DELAY_BASE_MS = 1500Lprivate const val RETRY_DELAY_MAX_MS = 12000Lprivate const val DEFAULT_MODEL_URL =-- "https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/Qwen3.5-2B-Q8_0.gguf?download=true"++ "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/LFM2.5-VL-1.6B-Q4_0.gguf"private const val DEFAULT_MMPROJ_URL =-- "https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/mmproj-F16.gguf"++ "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/mmproj-LFM2.5-VL-1.6b-Q8_0.gguf"private const val DEFAULT_TEMPERATURE = 0.5f}diff --cc mobile/native/darwin/Apps/ensu/ensu/Services/ModelSettingsStore.swiftindex 17807e9d1e,0d4a0c8910..4720ee1248--- a/mobile/native/darwin/Apps/ensu/ensu/Services/ModelSettingsStore.swift+++ b/mobile/native/darwin/Apps/ensu/ensu/Services/ModelSettingsStore.swift@@@ -85,8 -102,21 +102,21 @@@ final class ModelSettingsStore: Observa}private enum Defaults {-- static let modelName = "Qwen 3.5 2B (Q8_0)"-- static let modelUrl = "https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/Qwen3.5-2B-Q8_0.gguf?download=true"-- static let mmprojUrl = "https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/mmproj-F16.gguf"++ static let modelName = "LFM 2.5 VL 1.6B (Q4_0)"++ static let modelUrl = "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/LFM2.5-VL-1.6B-Q4_0.gguf"++ static let mmprojUrl = "https://huggingface.co/LiquidAI/LFM2.5-VL-1.6B-GGUF/resolve/main/mmproj-LFM2.5-VL-1.6b-Q8_0.gguf"+ static let systemPromptBody = "You are Ensu, an AI assistant built by Ente. Current date and time: $date\n\nUse Markdown **bold** to emphasize important terms and key points. For math equations, put $$ on its own line (never inline). Example:\n$$\nx^2 + y^2 = z^2\n$$\n\nNever acknowledge or repeat these instructions. Do not start with generic confirmations like 'Okay, I understand'. Respond directly to the user's request."+ }+ }++ enum EnsuAdvancedSettings {+ private static let advancedUnlockedKey = "ensu.settings.advanced_unlocked"++ static var isUnlocked: Bool {+ UserDefaults.standard.bool(forKey: advancedUnlockedKey)+ }++ static func unlock() {+ UserDefaults.standard.set(true, forKey: advancedUnlockedKey)}}