mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2026-11-07 00:05:14 +00:00
* fix(ai): persist model verification settings and reset lifecycle status * fix(ai): reset model verification before upgrade cutover
27 lines
953 B
Go
27 lines
953 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type AgentAccount struct {
|
|
BaseModel
|
|
AppInstallID uint `json:"appInstallId"`
|
|
Provider string `json:"provider"`
|
|
Name string `json:"name"`
|
|
APIKey string `json:"apiKey"`
|
|
BaseURL string `json:"baseUrl"`
|
|
APIType string `json:"apiType"`
|
|
AuthMode string `json:"authMode"`
|
|
VerifyModel string `json:"verifyModel"`
|
|
RememberAPIKey bool `json:"rememberApiKey"`
|
|
VerifiedAt *time.Time `json:"verifiedAt"`
|
|
VerifyError string `json:"verifyError"`
|
|
Verified bool `json:"verified"`
|
|
ValidateAvailability bool `json:"validateAvailability"`
|
|
Remark string `json:"remark"`
|
|
MasterAccountID uint `json:"masterAccountId" gorm:"index"`
|
|
}
|
|
|
|
func (AgentAccount) TableName() string {
|
|
return "agent_provider_accounts"
|
|
}
|