1Panel/backend/app/dto/ai.go
ssongliu ea044d6c32
Some checks failed
SonarCloud Scan / SonarCloud (push) Failing after -3s
fix: change the AI routing interface (#7887)
2025-02-17 15:33:57 +08:00

30 lines
764 B
Go

package dto
type OllamaModelInfo struct {
Name string `json:"name"`
Size string `json:"size"`
Modified string `json:"modified"`
}
type OllamaModelName struct {
Name string `json:"name"`
}
type OllamaBindDomain struct {
Domain string `json:"domain" validate:"required"`
AppInstallID uint `json:"appInstallID" validate:"required"`
SSLID uint `json:"sslID"`
AllowIPs []string `json:"allowIPs"`
WebsiteID uint `json:"websiteID"`
}
type OllamaBindDomainReq struct {
AppInstallID uint `json:"appInstallID" validate:"required"`
}
type OllamaBindDomainRes struct {
Domain string `json:"domain"`
SSLID uint `json:"sslID"`
AllowIPs []string `json:"allowIPs"`
WebsiteID uint `json:"websiteID"`
}