Documentation ¶
Index ¶
- type BaseResponse
- type BatchModifyWhisperUserBalanceRequest
- type BatchModifyWhisperUserBalanceResponse
- type BatchModifyWhisperUserBalanceResult
- type ClientItem
- type CreateClientModelItem
- type CreateClientModelRequest
- type CreateClientModelResponse
- type CreateClientRequest
- type CreateClientResponse
- type CreateClientScanModelItem
- type CreateResponse
- type CreateWhisperUserRequest
- type CreateWhisperUserResponse
- type GetWhisperUserRequest
- type GetWhisperUserResponse
- type ListClientModelRequest
- type ListClientModelResponse
- type ListClientResponse
- type ListClientsRequest
- type ListWhisperUserBalanceLogsRequest
- type ListWhisperUserBalanceLogsResponse
- type ListWhisperUserPermissionsRequest
- type ListWhisperUserPermissionsResponse
- type ListWhisperUsersRequest
- type ListWhisperUsersResponse
- type LoginToken
- type ModelItem
- type ModifyOpenaiClientBalanceRequest
- type ModifyOpenaiClientBalanceResponse
- type ModifyOpenaiClientBalanceResult
- type ModifyWhisperUserBalanceRequest
- type ModifyWhisperUserBalanceResponse
- type ModifyWhisperUserClientPermissions
- type ModifyWhisperUserPermissionRequest
- type ModifyWhisperUserPermissionResponse
- type ModifyWhisperUserPermissionResult
- type OverviewClientBalanceLog
- type OverviewRequest
- type OverviewResponse
- type OverviewResult
- type UpdateWhisperUserRequest
- type UpdateWhisperUserResponse
- type WhisperUserBalanceLog
- type WhisperUserClientPermission
- type WhisperUserInfo
- type WhisperUserModelPermission
- type WhisperUserResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseResponse ¶
type BatchModifyWhisperUserBalanceResponse ¶
type BatchModifyWhisperUserBalanceResponse = http.BaseResponse[*BatchModifyWhisperUserBalanceResult]
type BatchModifyWhisperUserBalanceResult ¶
type BatchModifyWhisperUserBalanceResult struct {
Success bool `json:"success"`
}
type ClientItem ¶
type CreateClientModelItem ¶
type CreateClientModelItem struct { Name string `json:"name" vc:"key:name,required"` MaxTokens int `json:"max_tokens" vc:"key:max_tokens,required"` PromptPrice decimal.Decimal `json:"prompt_price" vc:"key:prompt_price,required"` CompletionPrice decimal.Decimal `json:"completion_price" vc:"key:completion_price,required"` RpmLimit int `json:"rpm_limit,omitempty"` TpmLimit int `json:"tpm_limit,omitempty"` }
type CreateClientModelRequest ¶
type CreateClientModelRequest struct {
Models []CreateClientModelItem `json:"models" vc:"key:models,required"`
}
type CreateClientModelResponse ¶
type CreateClientModelResponse = http.BaseResponse[*CreateResponse]
type CreateClientRequest ¶
type CreateClientResponse ¶
type CreateClientResponse = http.BaseResponse[[]*CreateClientScanModelItem]
type CreateResponse ¶
type CreateResponse struct {
Success bool `json:"success"`
}
type CreateWhisperUserResponse ¶
type CreateWhisperUserResponse = http.BaseResponse[*WhisperUserResult]
type GetWhisperUserRequest ¶
type GetWhisperUserResponse ¶
type GetWhisperUserResponse = http.BaseResponse[*WhisperUserInfo]
type ListClientModelRequest ¶
type ListClientModelResponse ¶
type ListClientModelResponse = http.BaseResponse[[]*ModelItem]
type ListClientResponse ¶
type ListClientResponse = http.BaseResponse[[]*ClientItem]
type ListClientsRequest ¶
type ListWhisperUserBalanceLogsResponse ¶
type ListWhisperUserBalanceLogsResponse = http.BaseResponse[[]*WhisperUserBalanceLog]
type ListWhisperUserPermissionsResponse ¶
type ListWhisperUserPermissionsResponse = http.BaseResponse[[]*WhisperUserClientPermission]
type ListWhisperUsersRequest ¶
type ListWhisperUsersResponse ¶
type ListWhisperUsersResponse = http.BaseResponse[[]*WhisperUserResult]
type LoginToken ¶
type ModelItem ¶
type ModelItem struct { ID int `json:"id"` Name string `json:"name"` MaxTokens int `json:"max_tokens"` RpmLimit int `json:"rpm_limit"` TpmLimit int `json:"tpm_limit"` PromptPrice decimal.Decimal `json:"prompt_price"` CompletionPrice decimal.Decimal `json:"completion_price"` LastUpdatedAt int64 `json:"last_updated_at"` }
type ModifyOpenaiClientBalanceRequest ¶
type ModifyOpenaiClientBalanceRequest struct { ChangeAmount decimal.Decimal `json:"change_amount" vc:"key:change_amount,required"` Action model.EnumOpenaiClientBalanceAction `json:"action" vc:"key:action,required"` Reason string `json:"reason" vc:"key:reason,required"` }
type ModifyOpenaiClientBalanceResponse ¶
type ModifyOpenaiClientBalanceResponse = http.BaseResponse[*ModifyOpenaiClientBalanceResult]
type ModifyWhisperUserBalanceResponse ¶
type ModifyWhisperUserBalanceResponse = http.BaseResponse[*WhisperUserBalanceLog]
type ModifyWhisperUserPermissionRequest ¶
type ModifyWhisperUserPermissionRequest struct {
Permissions []ModifyWhisperUserClientPermissions `json:"permissions" vc:"key:permissions,required"`
}
type ModifyWhisperUserPermissionResponse ¶
type ModifyWhisperUserPermissionResponse = http.BaseResponse[*ModifyWhisperUserPermissionResult]
type ModifyWhisperUserPermissionResult ¶
type ModifyWhisperUserPermissionResult struct {
Success bool `json:"success"`
}
type OverviewRequest ¶
type OverviewResponse ¶
type OverviewResponse = http.BaseResponse[*OverviewResult]
type OverviewResult ¶
type OverviewResult struct { Clients []ClientItem `json:"clients"` ClientBalanceLogs []OverviewClientBalanceLog `json:"client_balance_logs"` }
type UpdateWhisperUserRequest ¶
type UpdateWhisperUserRequest struct { Email string `json:"email,omitempty" vc:"key:email,required"` Language string `json:"language,omitempty" vc:"key:language,required"` AllowIPs []string `json:"allow_ips,omitempty" vc:"key:allow_ips"` RefreshApiToken bool `json:"refresh_api_token,omitempty" vc:"key:refresh_api_token"` }
type UpdateWhisperUserResponse ¶
type UpdateWhisperUserResponse = http.BaseResponse[*WhisperUserResult]
type WhisperUserBalanceLog ¶
type WhisperUserClientPermission ¶
type WhisperUserClientPermission struct { ClientID int `json:"client_id"` ClientName string `json:"client_name"` Models []WhisperUserModelPermission `json:"models"` }
type WhisperUserInfo ¶
type WhisperUserInfo struct { ID int `json:"id"` Email string `json:"email"` ApiKey string `json:"api_key"` Role string `json:"role"` Language string `json:"language"` Balance decimal.Decimal `json:"balance"` AvailableModels []string `json:"available_models"` UpdatedAt string `json:"updated_at"` AllowIPs []string `json:"allow_ips,omitempty"` }
Click to show internal directories.
Click to hide internal directories.