mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-15 12:28:06 +08:00
feat: add deployment monitor page
- Add /deploy_status API endpoint for system status check - Create Monitor.tsx component with real-time status display - Support CUDA, FFmpeg, Whisper model status monitoring - Auto-refresh every 30 seconds with manual refresh option
This commit is contained in:
@@ -1,5 +1,29 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
export const systemCheck=async()=>{
|
||||
export const systemCheck = async () => {
|
||||
return await request.get('/sys_health')
|
||||
}
|
||||
|
||||
export interface DeployStatus {
|
||||
backend: {
|
||||
status: string
|
||||
port: number
|
||||
}
|
||||
cuda: {
|
||||
available: boolean
|
||||
version: string | null
|
||||
gpu_name: string | null
|
||||
}
|
||||
whisper: {
|
||||
model_size: string
|
||||
transcriber_type: string
|
||||
}
|
||||
ffmpeg: {
|
||||
available: boolean
|
||||
}
|
||||
}
|
||||
|
||||
export const getDeployStatus = async (): Promise<DeployStatus> => {
|
||||
return await request.get('/deploy_status')
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user