ai_model

package
v1.6.0-beta Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

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 Model

type Model struct {
	Name                *string
	Provider            *string
	Type                *string
	AccessConfiguration *string
	ModelParameters     *string
}

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

Jump to

Keyboard shortcuts

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