Help us shape the future of Go! Take the 2026 Go Developer Survey

titlegen

package
v1.11.13 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalConfig

type LocalConfig struct {
	Enabled        bool
	Runtime        string
	ExecutablePath string
	ModelPath      string
	HFRepo         string
	HFFile         string
	CacheDir       string
	Args           []string
	Timeout        time.Duration
}

LocalConfig describes a local, no-server title model. The first supported runtime is llama.cpp-compatible GGUF through llama-cli; Hugging Face is used as a model-file source, not as a remote inference provider.

type LocalGenerator

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

LocalGenerator generates session titles by running a local model process.

func NewLocalGenerator

func NewLocalGenerator(config LocalConfig) (*LocalGenerator, error)

func (*LocalGenerator) GenerateTitle

func (g *LocalGenerator) GenerateTitle(ctx context.Context, firstUserMsg string) (string, error)

Jump to

Keyboard shortcuts

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