Files
worker/app/models/llm.go
Gleb Tv 2c884c5612
Некоторые проверки не удались
CI / test (push) Successful in 2m5s
Docker / Build and publish worker image (push) Failing after 31s
refactor: adopt worker module path
2026-07-13 17:56:12 +03:00

18 строки
689 B
Go

package models
import "rocketgit.ru/rsmon/worker/app/models/concerns"
// LLM stores an OpenAI-compatible LLM endpoint available to checks.
type LLM struct {
concerns.Model
AccountID *int64 `json:"account_id" gorm:"type:bigint REFERENCES accounts(id);index"`
Account *Account `json:"-"`
Name string `json:"name" gorm:"not null"`
URL string `json:"url" gorm:"not null"`
ModelName string `json:"model" gorm:"column:model;not null"`
APIKey string `json:"-" gorm:"not null"`
Kind string `json:"kind" gorm:"not null;default:'openai'"`
Workers []WorkerNode `json:"-" gorm:"many2many:worker_llms;"`
concerns.Timestamped
}