add custom test model

This commit is contained in:
Martial BE
2023-12-29 16:23:25 +08:00
parent 61c47a3b08
commit 9c0a49b97a
4 changed files with 63 additions and 31 deletions

View File

@@ -26,6 +26,7 @@ type Channel struct {
ModelMapping *string `json:"model_mapping" gorm:"type:varchar(1024);default:''"`
Priority *int64 `json:"priority" gorm:"bigint;default:0"`
Proxy string `json:"proxy" gorm:"type:varchar(255);default:''"`
TestModel string `json:"test_model" gorm:"type:varchar(50);default:''"`
}
func GetAllChannels(startIdx int, num int, selectAll bool) ([]*Channel, error) {