ai

package
v1.3.4-beta Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProviderService

type IProviderService interface {
	universally.IServiceGet[Provider]
	Save(ctx context.Context, id string, cfg *SetProvider) error
}

type Provider

type Provider struct {
	Id         string
	Name       string
	DefaultLLM string
	Config     string
	Creator    string
	Updater    string
	Status     bool
	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
	Status     *bool
}

Jump to

Keyboard shortcuts

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