feat: able to set default test model (#138)

This commit is contained in:
CaIon
2024-04-04 17:28:56 +08:00
parent cdf2087952
commit 660b9b3c99
4 changed files with 20 additions and 4 deletions

View File

@@ -10,6 +10,7 @@ type Channel struct {
Type int `json:"type" gorm:"default:0"`
Key string `json:"key" gorm:"not null"`
OpenAIOrganization *string `json:"openai_organization"`
TestModel *string `json:"test_model"`
Status int `json:"status" gorm:"default:1"`
Name string `json:"name" gorm:"index"`
Weight *uint `json:"weight" gorm:"default:0"`