Update notification service

This commit is contained in:
MacRimi
2026-03-20 20:11:08 +01:00
parent d871b4c78e
commit fa29c46a95
2 changed files with 10 additions and 2 deletions

View File

@@ -1409,7 +1409,16 @@ export function NotificationSettings() {
</div>
<Select
value={config.ai_provider}
onValueChange={v => updateConfig(p => ({ ...p, ai_provider: v }))}
onValueChange={v => {
// When changing provider, also update the model to the new provider's default
const newProvider = AI_PROVIDERS.find(p => p.value === v)
const newModel = newProvider?.model || ''
updateConfig(p => ({ ...p, ai_provider: v, ai_model: newModel }))
// Clear Ollama models list when switching away from Ollama
if (v !== 'ollama') {
setOllamaModels([])
}
}}
disabled={!editMode}
>
<SelectTrigger className="h-9 text-sm">

View File

@@ -1272,7 +1272,6 @@ Your task is to translate and reformat incoming server alert messages into {lang
Example: 🗂️ Important packages:\\n• none
Example (Spanish): 🗂️ Paquetes importantes:\\n• ninguno
Example (Français): 🗂️ Paquets importants:\\n• aucun
12. DEDUPLICATION — input may contain redundant or repeated information from multiple monitoring sources:
- Identify and merge duplicate facts (same device, same error, same metric mentioned twice)
- Present each unique fact exactly once in a clear, consolidated form