mirror of
https://gitee.com/fit2cloud-feizhiyun/1Panel.git
synced 2026-11-20 07:49:30 +08:00
92c3173aec
* feat(ai): sync gateway providers and model discovery Add provider account types and protocol-aware model discovery, and replace predefined models with editable model pools. Align provider icons with AI Gateway, preserve international Coding Plan restrictions, and filter account counts consistently with selectable accounts. * fix(ai): preserve Ollama base paths during model discovery * fix(ai): restore custom DashScope image protocol support
28 lines
1007 B
Go
28 lines
1007 B
Go
package model
|
|
|
|
import "time"
|
|
|
|
type AgentAccount struct {
|
|
BaseModel
|
|
AccountType string `json:"accountType"`
|
|
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"
|
|
}
|