ai

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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateProvider

type CreateProvider struct {
	Id         string
	Name       string
	DefaultLLM string
	Config     string
	Status     int
	Type       int
}

type IProviderService

type IProviderService interface {
	universally.IServiceGet[Provider]
	universally.IServiceCreate[CreateProvider]
	universally.IServiceEdit[SetProvider]
	universally.IServiceDelete
	//Save(ctx context.Context, id string, cfg *SetProvider) error
	//MaxPriority(ctx context.Context) (int, error)
	CheckUuidDuplicate(ctx context.Context, uuid string) bool
}

type Provider

type Provider struct {
	Id         string
	Name       string
	DefaultLLM string
	Config     string
	Creator    string
	Updater    string
	Status     int
	Type       int
	Priority   int
	CreateAt   time.Time
	UpdateAt   time.Time
}

func FromEntity

func FromEntity(e *ai.Provider) *Provider

type SetProvider

type SetProvider struct {
	Name       *string
	DefaultLLM *string
	Config     *string
	Priority   *int
	Status     *int
	Type       *int
}

Jump to

Keyboard shortcuts

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