mirror of
https://github.com/JefferyHcool/BiliNote.git
synced 2026-05-14 03:19:41 +08:00
- 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
30 lines
529 B
TypeScript
30 lines
529 B
TypeScript
import request from '@/utils/request'
|
|
|
|
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')
|
|
}
|
|
|