feat(models): add kind and models_meta snapshot

This commit is contained in:
zenfun
2025-12-17 23:15:12 +08:00
parent 2b0ed3d3d5
commit 96e1fe41a5
6 changed files with 272 additions and 13 deletions

View File

@@ -60,6 +60,7 @@ type Provider struct {
type Model struct {
gorm.Model
Name string `gorm:"uniqueIndex;not null" json:"name"`
Kind string `gorm:"size:50;default:'chat'" json:"kind"`
ContextWindow int `json:"context_window"`
CostPerToken float64 `json:"cost_per_token"`
SupportsVision bool `json:"supports_vision"`