judgeruntime

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(ctx context.Context, cfg Config) (judge.Judge, func(), string, error)

func LooksLikeGGUFPath

func LooksLikeGGUFPath(value string) bool

func ManagedListenConfig

func ManagedListenConfig(rawURL string, port int) (string, int, string, error)

func ManagedModelName

func ManagedModelName(modelPath, hfRepo, hfFile string) string

func ResolvedCacheDir

func ResolvedCacheDir(cacheDir, dbPath string) string

func ValidateLocalURL

func ValidateLocalURL(value string) error

Types

type Config

type Config struct {
	URL              string
	Model            string
	Timeout          time.Duration
	Managed          bool
	ServerBin        string
	ModelPath        string
	HFRepo           string
	HFFile           string
	HFRevision       string
	CacheDir         string
	Port             int
	StartupTimeout   time.Duration
	DownloadProgress judge.DownloadProgressHandler
}

func ConfigFromEnv

func ConfigFromEnv(dbPath string, managedDefault bool) (Config, error)

Jump to

Keyboard shortcuts

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