690602:0957 ADR-033-233 #01
CI / CD Pipeline / build (push) Successful in 4m52s
CI / CD Pipeline / deploy (push) Successful in 17m39s

This commit is contained in:
2026-06-02 09:57:48 +07:00
parent 7f35c3a585
commit bc754e66fd
32 changed files with 1404 additions and 576 deletions
@@ -111,15 +111,14 @@ export class VramMonitorService {
} catch (err: unknown) {
const msg = err instanceof Error ? err.message : String(err);
this.logger.warn(
`VRAM status fetch failed: ${msg} — ใช้ค่า conservative fallback`
`VRAM status fetch failed: ${msg} — ใช้ค่า resilient fallback`
);
// Fallback: สมมติว่า VRAM ไม่พอเมื่อ Ollama ไม่ตอบสนอง
return {
totalVramMb: GPU_TOTAL_VRAM_MB,
usedVramMb: GPU_TOTAL_VRAM_MB,
freeVramMb: 0,
usedVramMb: 0,
freeVramMb: GPU_TOTAL_VRAM_MB,
loadedModels: [],
hasCapacity: false,
hasCapacity: true,
};
}
}