Versions in this module Expand all Collapse all v2 v2.3.0 Apr 21, 2026 Changes in this version type Base + AllowRequestAbort bool + type ModelAgentHealthCheckTask struct + AutoRecover bool + BaseUrl string + Cron string + DisableCount int64 + Key string + LockMinutes time.Duration + ModelAgents []string + Models []string + Open bool + RecoverCount int64 + RecoverModelCount int64 + RemoveModelCount int64 + SmartCheck bool + StatPeriod time.Duration + TestMethod int + type ModelAgentSessionKeep struct + AgentLimit int64 + FailSwitchThreshold int64 + FailTtl time.Duration + GlobalLimit int64 + Open bool + Ttl time.Duration + UserLimit int64 + type ModelAgentSessionKeepTask struct + Cron string + LockMinutes time.Duration + Open bool + type ResetTask struct + Cron string + LockMinutes time.Duration + Open bool type Spend + GroupBillingMethods []int + GroupTimeRule *TimeRule + ModelTimeRule *TimeRule + type TimeRule struct + DayMode string + Days []int + Discount float64 + EndTime int64 + ModelNames []string + Models []string + Name string + Priority int + StartTime int64 + TimeType string type VideoGenerationPricing + Mode string type VideoGenerationSpend + InputTokens int v2.1.0 Feb 9, 2026 Changes in this version + type AdminLogin struct + AccountLogin bool + EmailLogin bool + EmailRetrieve bool + Path string + SessionExpire int + type Announcement struct + Content string + JumpUrl string + type AudioPricing struct + InputRatio float64 + OutputRatio float64 + type AudioSpend struct + InputTokens int + OutputTokens int + Pricing *AudioPricing + SpendTokens float64 + type AutoDisabledError struct + Errors []string + Open bool + type AutoEnableError struct + EnableErrors []EnableError + Open bool + type Base struct + ErrRetry int + LongTimeout time.Duration + ModelAgentErrDisable int64 + ModelAgentKeyErrDisable int64 + ModelKeyErrDisable int64 + ShortTimeout time.Duration + type BatchTask struct + Cron string + LockMinutes time.Duration + Open bool + type CachePricing struct + Gt int + Lte int + Mode string + ReadRatio float64 + ServiceTier string + WriteRatio float64 + type CacheSpend struct + Pricing *CachePricing + ReadTokens int + SpendTokens float64 + WriteTokens int + type Carousel struct + ImageUrl string + JumpUrl string + type Core struct + ChannelPrefix string + ErrorPrefix string + ReplaceErrorPrefixes []string + SecretKeyPrefix string + type Debug struct + Open bool + type Document struct + JumpUrl string + Title string + type Email struct + FromName string + Host string + Interval time.Duration + Open bool + Password string + Port int + UserName string + type EnableError struct + Cron string + EnableTime time.Duration + Error string + type FallbackConfig struct + Model string + ModelAgent string + ModelAgentName string + ModelName string + type FileTask struct + Cron string + IsEnableStorage bool + LockMinutes time.Duration + Open bool + StorageBaseUrl string + StorageDir string + StorageExpiredDelete bool + StorageExpiresAt time.Duration + type ForwardConfig struct + ContentLength int + DecisionModel string + DecisionModelName string + ForwardMode int + ForwardRule int + Keywords []string + MatchRule []int + TargetModel string + TargetModelName string + TargetModelNames []string + TargetModels []string + UsedQuota float64 + type GeneralApi struct + IpWhitelist []string + Open bool + type Http struct + ProxyUrl string + Timeout time.Duration + type ImageData struct + B64JSON string + RevisedPrompt string + URL string + type ImageGenerationPricing struct + Height int + IsDefault bool + OnceRatio float64 + Quality string + Width int + type ImageGenerationSpend struct + N int + Pricing *ImageGenerationPricing + SpendTokens float64 + type ImagePricing struct + InputRatio float64 + OutputRatio float64 + type ImageSpend struct + InputTokens int + OutputTokens int + Pricing *ImagePricing + SpendTokens float64 + type Log struct + AudioReserve time.Duration + BatchReserve time.Duration + Cron string + FileReserve time.Duration + GeneralReserve time.Duration + ImageReserve time.Duration + Open bool + Status []int + TextRecords []string + TextReserve time.Duration + VideoReserve time.Duration + type Message struct + Audio *smodel.Audio + Content string + FunctionCall *smodel.FunctionCall + Name string + Refusal string + Role string + ToolCallId string + ToolCalls []smodel.ToolCall + type Midjourney struct + ApiBaseUrl string + ApiSecret string + ApiSecretHeader string + CdnOriginalUrl string + CdnUrl string + Open bool + type MidjourneyPricing struct + Action string + Name string + OnceRatio float64 + Path string + type MidjourneySpend struct + Pricing *MidjourneyPricing + SpendTokens float64 + type ModelStat struct + Abnormal int + AbnormalTokens float64 + Model string + ModelId string + Tokens float64 + Total int + type NotRetryError struct + Errors []string + Open bool + type NotShieldError struct + Errors []string + Open bool + type Notice struct + Cron string + LockMinutes time.Duration + Open bool + type OncePricing struct + OnceRatio float64 + type OnceSpend struct + InputTokens int + OutputTokens int + Pricing *OncePricing + SpendTokens float64 + type PresetConfig struct + IsSupportStream bool + IsSupportSystemRole bool + MaxTokens int + MinTokens int + SystemRolePrompt string + type Pricing struct + Audio *AudioPricing + AudioCache *CachePricing + BillingItems []string + BillingMethods []int + BillingRule int + Image *ImagePricing + ImageCache *CachePricing + ImageGeneration []*ImageGenerationPricing + Midjourney []*MidjourneyPricing + Once *OncePricing + Search []*SearchPricing + Text []*TextPricing + TextCache []*CachePricing + TieredText []*TextPricing + TieredTextCache []*CachePricing + Video *VideoPricing + VideoCache *CachePricing + VideoGeneration []*VideoGenerationPricing + Vision []*VisionPricing + type Quota struct + ExhaustedNotice bool + ExpiredClear bool + ExpiredClearDefer time.Duration + ExpiredNotice bool + ExpiredThreshold time.Duration + ExpiredWarning bool + Threshold int + Warning bool + type QuotaTask struct + Cron string + LockMinutes time.Duration + Open bool + type ResellerLoginRegister struct + AccountLogin bool + EmailLogin bool + EmailRegister bool + EmailRetrieve bool + SessionExpire int + type ResellerShieldError struct + Errors []string + Open bool + type Retry struct + ErrMsg string + IsRetry bool + RetryCount int + type SearchPricing struct + ContextSize string + IsDefault bool + OnceRatio float64 + type SearchSpend struct + Pricing *SearchPricing + SpendTokens float64 + type ServiceUnavailable struct + IpWhitelist []string + Open bool + type Spend struct + Audio *AudioSpend + AudioCache *CacheSpend + BillingItems []string + BillingMethods []int + BillingRule int + GroupDiscount float64 + GroupId string + GroupName string + Image *ImageSpend + ImageCache *CacheSpend + ImageGeneration *ImageGenerationSpend + Midjourney *MidjourneySpend + Once *OnceSpend + Search *SearchSpend + Text *TextSpend + TextCache *CacheSpend + TieredText *TextSpend + TieredTextCache *CacheSpend + TotalSpendTokens float64 + Video *VideoSpend + VideoCache *CacheSpend + VideoGeneration *VideoGenerationSpend + Vision *VisionSpend + type Statistics struct + Cron string + Limit int64 + LockMinutes time.Duration + Open bool + type Test struct + Tests []TestItem + type TestItem struct + Model string + ModelType int + Provider string + RequestData string + type TextPricing struct + Gt int + InputRatio float64 + Lte int + Mode string + OutputRatio float64 + ReasoningRatio float64 + ServiceTier string + type TextSpend struct + InputTokens int + OutputTokens int + Pricing *TextPricing + ReasoningTokens int + SpendTokens float64 + type UserLoginRegister struct + AccountLogin bool + EmailLogin bool + EmailRegister bool + EmailRetrieve bool + SessionExpire int + type UserShieldError struct + Errors []string + Open bool + type VideoGenerationPricing struct + Height int + IsDefault bool + OnceRatio float64 + Width int + type VideoGenerationSpend struct + Pricing *VideoGenerationPricing + Seconds int + SpendTokens float64 + type VideoPricing struct + InputRatio float64 + OutputRatio float64 + type VideoSpend struct + InputTokens int + OutputTokens int + Pricing *VideoPricing + SpendTokens float64 + type VideoTask struct + Cron string + IsEnableStorage bool + LockMinutes time.Duration + Open bool + StorageBaseUrl string + StorageDir string + StorageExpiredDelete bool + StorageExpiresAt time.Duration + type VisionPricing struct + IsDefault bool + Mode string + OnceRatio float64 + type VisionSpend struct + Pricing *VisionPricing + SpendTokens float64 Other modules containing this package github.com/iimeta/fastapi-admin