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:
@@ -1583,6 +1583,13 @@ export default function Hardware() {
|
|||||||
<span className="text-sm text-right">{selectedPCIDevice.device}</span>
|
<span className="text-sm text-right">{selectedPCIDevice.device}</span>
|
||||||
</div>
|
</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">
|
<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 font-medium text-muted-foreground">Vendor</span>
|
||||||
<span className="text-sm">{selectedPCIDevice.vendor}</span>
|
<span className="text-sm">{selectedPCIDevice.vendor}</span>
|
||||||
|
|||||||
@@ -63,8 +63,10 @@ class OllamaProvider(AIProvider):
|
|||||||
|
|
||||||
# Cloud models (e.g., kimi-k2.5:cloud, minimax-m2.7:cloud) need longer timeout
|
# Cloud models (e.g., kimi-k2.5:cloud, minimax-m2.7:cloud) need longer timeout
|
||||||
# because requests go through: ProxMenux -> Ollama -> Cloud Provider -> back
|
# 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()
|
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:
|
try:
|
||||||
result = self._make_request(url, payload, headers, timeout=timeout)
|
result = self._make_request(url, payload, headers, timeout=timeout)
|
||||||
|
|||||||
@@ -5644,6 +5644,10 @@ def get_hardware_info():
|
|||||||
'device': device_name,
|
'device': device_name,
|
||||||
'class': device_class
|
'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:
|
if network_subtype:
|
||||||
pci_device['network_subtype'] = network_subtype
|
pci_device['network_subtype'] = network_subtype
|
||||||
hardware_data['pci_devices'].append(pci_device)
|
hardware_data['pci_devices'].append(pci_device)
|
||||||
|
|||||||
Reference in New Issue
Block a user