Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AvailableClientDTO ¶
type AvailableClientDTO struct { ClientID int `gorm:"column:client_id"` ClientWeight int64 `gorm:"column:client_weight"` ClientBalance decimal.Decimal `gorm:"column:client_balance"` UserID int `gorm:"column:user_id"` UserBalance decimal.Decimal `gorm:"column:user_balance"` UserRole string `gorm:"column:user_role"` ModelID int `gorm:"column:model_id"` ModelName string `gorm:"column:model_name"` ModelMaxToken int `gorm:"column:model_max_token"` ModelPromptPrice decimal.Decimal `gorm:"column:model_prompt_price"` ModelCompletionPrice decimal.Decimal `gorm:"column:model_completion_price"` }
type ClientCheckDTO ¶
type ClientModelDTO ¶
type ClientSecretDTO ¶
type GetAvailableClientCND ¶
func (*GetAvailableClientCND) ParseTemplate ¶
func (cnd *GetAvailableClientCND) ParseTemplate(tmpl string) string
type GetClientSecretCND ¶
type GetClientSecretCND struct {
ClientIDs []int
}
func (*GetClientSecretCND) ParseTemplate ¶
func (cnd *GetClientSecretCND) ParseTemplate(tmpl string) string
type ListClientDTO ¶
type OpenaiClientBalanceStatisticsDTO ¶
type OpenaiClientBalanceStatisticsDTO struct { ClientID int `gorm:"column:client_id" json:"client_id"` ClientName string `gorm:"column:client_name" json:"client_name"` DateDay time.Time `gorm:"column:date_day" json:"date_day"` TotalCost decimal.Decimal `gorm:"column:total_cost" json:"total_cost"` RequestCount int `gorm:"column:request_count" json:"request_count"` }
type RelatedModelDTO ¶
type RelatedModelDTO struct { ModelID int `gorm:"column:model_id"` ModelName string `gorm:"column:model_name"` ModelType string `gorm:"column:model_type"` MaxTokens int `gorm:"column:model_max_tokens"` ModelRpmLimit int `gorm:"column:model_rpm_limit"` ModelTpmLimit int `gorm:"column:model_tpm_limit"` LastUpdatedAt time.Time `gorm:"column:last_updated_at"` PromptPrice decimal.Decimal `gorm:"column:model_prompt_price"` CompletionPrice decimal.Decimal `gorm:"column:model_completion_price"` }
type WhisperUserInfo ¶
type WhisperUserInfo struct { UserInfo WhisperUserInfoDTO Models []string }
type WhisperUserInfoDTO ¶
type WhisperUserInfoDTO struct { ID int `gorm:"column:id"` Email string `gorm:"column:email"` ApiKey string `gorm:"column:api_key"` Role string `gorm:"column:role"` Language string `gorm:"column:language"` AllowIps string `gorm:"column:allow_ips"` UpdatedAt time.Time `gorm:"column:updated_at"` Balance decimal.Decimal `gorm:"column:balance"` }
Click to show internal directories.
Click to hide internal directories.