config

package
v1.38.21 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultBaseURL = "https://inference.do-ai.run"
	DefaultModel   = "llama-4-maverick"
)

Functions

func NewClassSettings

func NewClassSettings(cfg moduletools.ClassConfig) *classSettings

Types

type ModelLister

type ModelLister interface {
	ListModels(ctx context.Context, baseURL, apiKey string, weaviateUUID string) ([]string, error)
}

ModelLister returns the set of available model ids from a DigitalOcean Serverless Inference endpoint. It is implemented in the clients package and injected here through DefaultModelLister to keep config free of HTTP-client dependencies. Tests can override DefaultModelLister with a fake.

var DefaultModelLister ModelLister

DefaultModelLister is the lister used by Validate. The clients package registers an HTTP-backed implementation at init time.

Jump to

Keyboard shortcuts

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