core

package
v1.4.99 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const NoSessionPatternUserMessages = "no session, pattern or user messages provided"

Variables

This section is empty.

Functions

This section is empty.

Types

type Chatter

type Chatter struct {
	Stream bool
	DryRun bool
	// contains filtered or unexported fields
}

func (*Chatter) BuildSession added in v1.4.47

func (o *Chatter) BuildSession(request *common.ChatRequest, raw bool) (session *fsdb.Session, err error)

func (*Chatter) Send

func (o *Chatter) Send(request *common.ChatRequest, opts *common.ChatOptions) (session *fsdb.Session, err error)

type PluginRegistry added in v1.4.67

type PluginRegistry struct {
	Db *fsdb.Db

	VendorManager  *ai.VendorsManager
	VendorsAll     *ai.VendorsManager
	Defaults       *tools.Defaults
	PatternsLoader *tools.PatternsLoader
	YouTube        *youtube.YouTube
	Language       *lang.Language
	Jina           *jina.Client
}

func NewPluginRegistry added in v1.4.67

func NewPluginRegistry(db *fsdb.Db) (ret *PluginRegistry)

func (*PluginRegistry) Configure added in v1.4.67

func (o *PluginRegistry) Configure() (err error)

Configure buildClient VendorsController based on the environment variables

func (*PluginRegistry) ConfigureVendors added in v1.4.97

func (o *PluginRegistry) ConfigureVendors()

func (*PluginRegistry) GetChatter added in v1.4.67

func (o *PluginRegistry) GetChatter(model string, modelContextLength int, stream bool, dryRun bool) (ret *Chatter, err error)

func (*PluginRegistry) GetModels added in v1.4.97

func (o *PluginRegistry) GetModels() (ret *ai.VendorsModels, err error)

func (*PluginRegistry) SaveEnvFile added in v1.4.67

func (o *PluginRegistry) SaveEnvFile() (err error)

func (*PluginRegistry) Setup added in v1.4.67

func (o *PluginRegistry) Setup() (err error)

func (*PluginRegistry) SetupVendor added in v1.4.67

func (o *PluginRegistry) SetupVendor(vendorName string) (err error)

Jump to

Keyboard shortcuts

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