Files
InfoGenie/infogenie-backend-go/internal/model/site_ai_runtime.go
2026-03-28 20:59:52 +08:00

16 lines
633 B
Go
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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" }