ai_balance_dto

package
v1.7.2-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ModelTypeOnline = "online"
	ModelTypeLocal  = "local"

	StateNormal   = "normal"
	StateAbnormal = "abnormal"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BasicItem

type BasicItem struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type Create

type Create struct {
	Id       string `json:"id"`
	Type     string `json:"type"`
	Provider string `json:"provider"`
	Model    string `json:"model"`
}

type Item

type Item struct {
	Id       string     `json:"id"`
	Priority int        `json:"priority"`
	Provider *BasicItem `json:"provider"`
	Model    *BasicItem `json:"model"`
	Type     ModelType  `json:"type"`
	State    ModelState `json:"state"`
	APICount int64      `json:"api_count"`
	KeyCount int64      `json:"key_count"`
}

type ModelState

type ModelState string

func ModelStateFromInt

func ModelStateFromInt(i int) ModelState

func (ModelState) Int

func (m ModelState) Int() int

func (ModelState) String

func (m ModelState) String() string

type ModelType

type ModelType string

func ModelTypeFromInt

func ModelTypeFromInt(i int) ModelType

func (ModelType) Int

func (m ModelType) Int() int

func (ModelType) String

func (m ModelType) String() string

type Sort

type Sort struct {
	Origin string `json:"origin"`
	Target string `json:"target"`
	Sort   string `json:"sort"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL