openai

package
v0.4.9 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OpenaiCmd = &cobra.Command{
	Use:   "openai",
	Short: "OpenAI commands",
}

Functions

This section is empty.

Types

type EngineInfoCommand added in v0.1.7

type EngineInfoCommand struct {
	*cmds.CommandDescription
}

func NewEngineInfoCommand added in v0.1.7

func NewEngineInfoCommand() (*EngineInfoCommand, error)

func (*EngineInfoCommand) RunIntoGlazeProcessor added in v0.3.0

func (c *EngineInfoCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type EngineInfoSettings added in v0.3.0

type EngineInfoSettings struct {
	Engine string `glazed.parameter:"engine"`
}

type ListEnginesCommand added in v0.1.7

type ListEnginesCommand struct {
	*cmds.CommandDescription
}

func NewListEngineCommand added in v0.1.7

func NewListEngineCommand() (*ListEnginesCommand, error)

func (*ListEnginesCommand) RunIntoGlazeProcessor added in v0.3.0

func (c *ListEnginesCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type ListEnginesSettings added in v0.3.0

type ListEnginesSettings struct {
	ID        string `glazed.parameter:"id"`
	Owner     string `glazed.parameter:"owner"`
	OnlyReady bool   `glazed.parameter:"only-ready"`
}

type TranscribeCommand added in v0.2.18

type TranscribeCommand struct {
	*cmds.CommandDescription
}

func NewTranscribeCommand added in v0.2.18

func NewTranscribeCommand() (*TranscribeCommand, error)

func (*TranscribeCommand) RunIntoGlazeProcessor added in v0.3.0

func (c *TranscribeCommand) RunIntoGlazeProcessor(
	ctx context.Context,
	parsedLayers *layers.ParsedLayers,
	gp middlewares.Processor,
) error

type TranscribeSettings added in v0.3.0

type TranscribeSettings struct {
	DirPath      string  `glazed.parameter:"dir"`
	FilePath     string  `glazed.parameter:"file"`
	Workers      int     `glazed.parameter:"workers"`
	Model        string  `glazed.parameter:"model"`
	Prompt       string  `glazed.parameter:"prompt"`
	Language     string  `glazed.parameter:"language"`
	Temperature  float64 `glazed.parameter:"temperature"`
	WithSegments bool    `glazed.parameter:"with-segments"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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