Documentation ¶
Index ¶
- Constants
- func ExtraModelGroup() []string
- func GROUP() string
- func GROUPID() int64
- func GUIDE() string
- func GroupIndex2GroupName(groupIndex int) string
- func Load(configPath string) error
- func MODELFILETONAME(file string) string
- func NewWatchConfig(ctx context.Context) *watchs
- func Wathc()
- type Api
- type Config
- type ControlPreProcess
- type ControlProcess
- type Embedding
- type ExtraModel
- func ALLExtraModel() []ExtraModel
- func ExtraModelWithGroup(group string) []ExtraModel
- func GetExtraModel(name string) (ExtraModel, error)
- func GetExtraModelWithGroup(group, name string) (ExtraModel, error)
- func GroupIndex2ExtraModels(groupIndex int) []ExtraModel
- func Index2ExtraModel(GroupIndex, LoraIndex int) ExtraModel
- type Model
- type SortEmbedding
- type SortExtraModel
Constants ¶
View Source
const ConfigPath = "./config.yaml"
Variables ¶
This section is empty.
Functions ¶
func ExtraModelGroup ¶
func ExtraModelGroup() []string
func GroupIndex2GroupName ¶
func MODELFILETONAME ¶
func NewWatchConfig ¶
Types ¶
type Config ¶
type Config struct { Api []Api Model []Model Embedding []Embedding ExtraModel []ExtraModel GroupID int64 Group string Guide string ControlPreProcess []ControlPreProcess ControlProcess []ControlProcess }
type ControlPreProcess ¶
type ControlPreProcess struct {
Name string
}
func PreProcess ¶
func PreProcess() []ControlPreProcess
type ControlProcess ¶
func Name2Process ¶
func Name2Process(name string) ControlProcess
func Process ¶
func Process() []ControlProcess
type Embedding ¶
func ALLEmbedding ¶
func ALLEmbedding() []Embedding
type ExtraModel ¶
type ExtraModel struct { Name string NameExt string Preview string Type string TriggerWords []string Group []string }
func ALLExtraModel ¶
func ALLExtraModel() []ExtraModel
func ExtraModelWithGroup ¶
func ExtraModelWithGroup(group string) []ExtraModel
func GetExtraModel ¶
func GetExtraModel(name string) (ExtraModel, error)
func GetExtraModelWithGroup ¶
func GetExtraModelWithGroup(group, name string) (ExtraModel, error)
func GroupIndex2ExtraModels ¶
func GroupIndex2ExtraModels(groupIndex int) []ExtraModel
func Index2ExtraModel ¶
func Index2ExtraModel(GroupIndex, LoraIndex int) ExtraModel
type Model ¶
func Name2Model ¶
type SortEmbedding ¶
type SortEmbedding []Embedding
func (SortEmbedding) Len ¶
func (x SortEmbedding) Len() int
func (SortEmbedding) Less ¶
func (x SortEmbedding) Less(i, j int) bool
func (SortEmbedding) Swap ¶
func (x SortEmbedding) Swap(i, j int)
type SortExtraModel ¶
type SortExtraModel []ExtraModel
func (SortExtraModel) Len ¶
func (x SortExtraModel) Len() int
func (SortExtraModel) Less ¶
func (x SortExtraModel) Less(i, j int) bool
func (SortExtraModel) Swap ¶
func (x SortExtraModel) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.