mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2026-04-18 10:02:16 +00:00
Update notification service
This commit is contained in:
@@ -1409,7 +1409,16 @@ export function NotificationSettings() {
|
|||||||
</div>
|
</div>
|
||||||
<Select
|
<Select
|
||||||
value={config.ai_provider}
|
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}
|
disabled={!editMode}
|
||||||
>
|
>
|
||||||
<SelectTrigger className="h-9 text-sm">
|
<SelectTrigger className="h-9 text-sm">
|
||||||
|
|||||||
@@ -1272,7 +1272,6 @@ Your task is to translate and reformat incoming server alert messages into {lang
|
|||||||
Example: 🗂️ Important packages:\\n• none
|
Example: 🗂️ Important packages:\\n• none
|
||||||
Example (Spanish): 🗂️ Paquetes importantes:\\n• ninguno
|
Example (Spanish): 🗂️ Paquetes importantes:\\n• ninguno
|
||||||
Example (Français): 🗂️ Paquets importants:\\n• aucun
|
Example (Français): 🗂️ Paquets importants:\\n• aucun
|
||||||
|
|
||||||
12. DEDUPLICATION — input may contain redundant or repeated information from multiple monitoring sources:
|
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)
|
- Identify and merge duplicate facts (same device, same error, same metric mentioned twice)
|
||||||
- Present each unique fact exactly once in a clear, consolidated form
|
- Present each unique fact exactly once in a clear, consolidated form
|
||||||
|
|||||||
Reference in New Issue
Block a user