Update notification service

This commit is contained in:
MacRimi
2026-03-22 18:43:33 +01:00
parent c47a7ba2a5
commit 01427f4926
3 changed files with 14 additions and 1 deletions

View File

@@ -1583,6 +1583,13 @@ export default function Hardware() {
<span className="text-sm text-right">{selectedPCIDevice.device}</span>
</div>
{selectedPCIDevice.sdevice && (
<div className="flex justify-between border-b border-border/50 pb-2">
<span className="text-sm font-medium text-muted-foreground">Product Name</span>
<span className="text-sm text-right text-blue-400">{selectedPCIDevice.sdevice}</span>
</div>
)}
<div className="flex justify-between border-b border-border/50 pb-2">
<span className="text-sm font-medium text-muted-foreground">Vendor</span>
<span className="text-sm">{selectedPCIDevice.vendor}</span>

View File

@@ -63,8 +63,10 @@ class OllamaProvider(AIProvider):
# Cloud models (e.g., kimi-k2.5:cloud, minimax-m2.7:cloud) need longer timeout
# because requests go through: ProxMenux -> Ollama -> Cloud Provider -> back
# Local models also need generous timeout for slower hardware (e.g., low-end CPUs,
# no GPU acceleration, larger models like 8B parameters)
is_cloud_model = ':cloud' in self.model.lower()
timeout = 120 if is_cloud_model else 30 # 2 minutes for cloud, 30s for local
timeout = 120 if is_cloud_model else 90 # 2 minutes for cloud, 90s for local
try:
result = self._make_request(url, payload, headers, timeout=timeout)

View File

@@ -5644,6 +5644,10 @@ def get_hardware_info():
'device': device_name,
'class': device_class
}
# Add subsystem device name if available (e.g., "HBA 9400-16i" for SAS controllers)
sdevice = current_device.get('SDevice', '')
if sdevice:
pci_device['sdevice'] = sdevice
if network_subtype:
pci_device['network_subtype'] = network_subtype
hardware_data['pci_devices'].append(pci_device)