openai

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 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

type EngineInfoCommand struct {
	*cmds.CommandDescription
}

func NewEngineInfoCommand

func NewEngineInfoCommand() (*EngineInfoCommand, error)

func (*EngineInfoCommand) RunIntoGlazeProcessor

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

type EngineInfoSettings

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

type ListEnginesCommand

type ListEnginesCommand struct {
	*cmds.CommandDescription
}

func NewListEngineCommand

func NewListEngineCommand() (*ListEnginesCommand, error)

func (*ListEnginesCommand) RunIntoGlazeProcessor

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

type ListEnginesSettings

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

type TranscribeCommand

type TranscribeCommand struct {
	*cmds.CommandDescription
}

func NewTranscribeCommand

func NewTranscribeCommand() (*TranscribeCommand, error)

func (*TranscribeCommand) RunIntoGlazeProcessor

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

type TranscribeSettings

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