internal

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTextQuerier added in v1.1.0

func CreateTextQuerier(conf text.Configurations) (models.Querier, error)

CreateTextQuerier by checking the model for which vendor to use, then initiating a TextQuerier

func NewPhotoQuerier added in v1.1.0

func NewPhotoQuerier(conf photo.Configurations) (models.Querier, error)

func Setup

func Setup(usage string) (models.Querier, error)

Types

type Configurations added in v1.1.0

type Configurations struct {
	ChatModel    string
	PhotoModel   string
	PhotoDir     string
	PhotoPrefix  string
	PhotoOutput  string
	Vendor       string
	StdinReplace string
	PrintRaw     bool
	ReplyMode    bool
}

type Mode added in v1.1.0

type Mode int
const (
	HELP Mode = iota
	QUERY
	CHAT
	GLOB
	PHOTO
	VERSION
)

type PromptConfig

type PromptConfig struct {
	Photo string `yaml:"photo"`
	Query string `yaml:"query"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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