2024-03-01 15:19:53 +00:00
|
|
|
package schema
|
|
|
|
|
|
|
|
import (
|
|
|
|
gopsutil "github.com/shirou/gopsutil/v3/process"
|
|
|
|
)
|
|
|
|
|
|
|
|
type BackendMonitorRequest struct {
|
|
|
|
Model string `json:"model" yaml:"model"`
|
|
|
|
}
|
|
|
|
|
|
|
|
type BackendMonitorResponse struct {
|
|
|
|
MemoryInfo *gopsutil.MemoryInfoStat
|
|
|
|
MemoryPercent float32
|
|
|
|
CPUPercent float64
|
|
|
|
}
|
|
|
|
|
|
|
|
type TTSRequest struct {
|
|
|
|
Model string `json:"model" yaml:"model"`
|
|
|
|
Input string `json:"input" yaml:"input"`
|
2024-03-14 22:08:34 +00:00
|
|
|
Voice string `json:"voice" yaml:"voice"`
|
2024-03-01 15:19:53 +00:00
|
|
|
Backend string `json:"backend" yaml:"backend"`
|
|
|
|
}
|