models

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUserQuit = errors.New("user quit the application")

Functions

func SelectModel

func SelectModel(models []string) (string, error)

Types

type ModelSelector

type ModelSelector struct {
	// contains filtered or unexported fields
}

func NewModelSelector

func NewModelSelector(models []string) *ModelSelector

func (*ModelSelector) Init

func (m *ModelSelector) Init() tea.Cmd

func (*ModelSelector) Update

func (m *ModelSelector) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*ModelSelector) View

func (m *ModelSelector) View() string

Jump to

Keyboard shortcuts

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