 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type APIItem
- type BackupProvider
- type BasicInfo
- type Condition
- type ConfiguredProviderItem
- type KeyStatus
- type LLMItem
- type ModelConfig
- type NewProvider
- type Provider
- type ProviderItem
- type ProviderStatus
- type SimpleModel
- type SimpleProvider
- type SimpleProviderItem
- type Sort
- type UpdateConfig
- type UpdateLLM
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIItem ¶
type APIItem struct {
	Id          string         `json:"id"`
	Name        string         `json:"name"`
	Service     auto.Label     `json:"service" aolabel:"service"`
	Team        auto.Label     `json:"team" aolabel:"team"`
	Method      string         `json:"method"`
	RequestPath string         `json:"request_path"`
	Model       auto.Label     `json:"model"`
	UpdateTime  auto.TimeLabel `json:"update_time"`
	UseToken    int            `json:"use_token"`
	Disable     bool           `json:"disable"`
}
    type BackupProvider ¶
type ConfiguredProviderItem ¶
type ConfiguredProviderItem struct {
	Id             string         `json:"id"`
	Name           string         `json:"name"`
	Logo           string         `json:"logo"`
	DefaultLLM     string         `json:"default_llm"`
	DefaultLLMName string         `json:"default_llm_name"`
	Status         ProviderStatus `json:"status"`
	APICount       int64          `json:"api_count"`
	KeyCount       int64          `json:"key_count"`
	ModelCount     int64          `json:"model_count"`
	CanDelete      bool           `json:"can_delete"`
}
    type LLMItem ¶
type LLMItem struct {
	Id                  string   `json:"id"`
	Name                string   `json:"name"`
	Logo                string   `json:"logo"`
	Config              string   `json:"config"`
	AccessConfiguration string   `json:"access_configuration"`
	ModelParameters     string   `json:"model_parameters"`
	Scopes              []string `json:"scopes"`
	Type                string   `json:"type"`
	IsSystem            bool     `json:"is_system"`
	ApiCount            int64    `json:"api_count"`
}
    type ModelConfig ¶
type NewProvider ¶
type NewProvider struct {
	Name string `json:"name"`
}
    type Provider ¶
type Provider struct {
	Id               string `json:"id"`
	Name             string `json:"name"`
	Config           string `json:"config"`
	GetAPIKeyUrl     string `json:"get_apikey_url"`
	DefaultLLM       string `json:"default_llm"`
	DefaultLLMConfig string `json:"-"`
	//Priority         int            `json:"priority"`
	Type        int            `json:"type"`
	Status      ProviderStatus `json:"status"`
	Configured  bool           `json:"configured"`
	ModelConfig ModelConfig    `json:"model_config"`
}
    type ProviderItem ¶
type ProviderStatus ¶
type ProviderStatus string
var ( ProviderEnabled ProviderStatus = "enabled" ProviderDisabled ProviderStatus = "disabled" ProviderAbnormal ProviderStatus = "abnormal" )
func ToProviderStatus ¶
func ToProviderStatus(status int) ProviderStatus
func (ProviderStatus) Int ¶
func (p ProviderStatus) Int() int
func (ProviderStatus) String ¶
func (p ProviderStatus) String() string
type SimpleModel ¶
type SimpleProvider ¶
type SimpleProviderItem ¶
type UpdateConfig ¶
 Click to show internal directories. 
   Click to hide internal directories.