 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
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 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"`
	Status     ProviderStatus `json:"status"`
	Configured bool           `json:"configured"`
}
    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 SimpleProvider ¶
type SimpleProviderItem ¶
type UpdateConfig ¶
 Click to show internal directories. 
   Click to hide internal directories.