connect

package
v0.20260526.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListModelsForProvider

func ListModelsForProvider(ctx context.Context, cfg *config.Root, p *config.Provider) ([]string, error)

func PromptIO

func PromptIO(d Deps) config.PromptIO

func Run

func Run(d Deps) error

Types

type Deps

type Deps struct {
	Ctx context.Context

	Out      io.Writer
	Stdin    io.Reader
	ReadLine func(prompt string) (string, error)

	Cfg     *config.Root
	SaveCfg func() error

	ApplyCurrentModel func(providerName, modelID string) error
	Model             func() string
	Provider          func() *config.Provider
}

Jump to

Keyboard shortcuts

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