Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IProviderModelService ¶
type IProviderModelService interface {
universally.IServiceGet[ProviderModel]
universally.IServiceDelete
CountMapByProvider(ctx context.Context, conditions map[string]interface{}) (map[string]int64, error)
Save(ctx context.Context, id string, cfg *Model) error
CheckNameDuplicate(ctx context.Context, provider string, name string, excludeId string) bool
}
type ProviderModel ¶
type ProviderModel struct {
Id string // provider model:uuid
Name string
Type string
AccessConfiguration string
ModelParameters string
Provider string
Creator string
Updater string
CreateAt time.Time
UpdateAt time.Time
}
func FromEntity ¶
func FromEntity(e *ai.ProviderModel) *ProviderModel
Click to show internal directories.
Click to hide internal directories.