remove upstream count

This commit is contained in:
2023-09-28 15:57:30 +08:00
parent f5dc8147e6
commit de1f9c1e94
2 changed files with 5 additions and 17 deletions

View File

@@ -1,17 +1,12 @@
package main
import (
"time"
"gorm.io/gorm"
)
// one openai upstream contain a pair of key and endpoint
type OPENAI_UPSTREAM struct {
gorm.Model
SK string `gorm:"index:idx_sk_endpoint,unique"` // key
Endpoint string `gorm:"index:idx_sk_endpoint,unique"` // endpoint
SuccessCount int64
FailedCount int64
LastCallSuccessTime time.Time
SK string `gorm:"index:idx_sk_endpoint,unique"` // key
Endpoint string `gorm:"index:idx_sk_endpoint,unique"` // endpoint
}