ent

package
v1.36.16 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBaseURL               = "https://inference.do-ai.run"
	DefaultVectorizeClassName    = true
	DefaultPropertyIndexed       = true
	DefaultVectorizePropertyName = false
	LowerCaseInput               = false
)

Variables

This section is empty.

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 ent free of HTTP-client dependencies. Tests can override DefaultModelLister with a fake.

var DefaultModelLister ModelLister

DefaultModelLister is the lister used by Validate. It is overridable so that the clients package can register a real HTTP-backed implementation at init time and so that tests can inject fakes without spinning up an httptest server.

Jump to

Keyboard shortcuts

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