update: 2026-03-28 20:59

This commit is contained in:
2026-03-28 20:59:52 +08:00
parent e21d58e603
commit 1c81d4e6ea
611 changed files with 27847 additions and 65061 deletions

View File

@@ -0,0 +1,15 @@
package model
import "time"
// SiteAIRuntime 单例行id=1管理员配置的 AI 上游地址与密钥,优先于 ai_config.json
type SiteAIRuntime struct {
ID uint `gorm:"primaryKey" json:"id"`
APIBase string `gorm:"type:varchar(512)" json:"api_base"`
APIKey string `gorm:"type:varchar(2048)" json:"-"`
DefaultModel string `gorm:"type:varchar(120)" json:"default_model"`
DefaultProv string `gorm:"type:varchar(64)" json:"default_provider"`
UpdatedAt time.Time `json:"updated_at"`
}
func (SiteAIRuntime) TableName() string { return "site_ai_runtime" }