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.
Click to show internal directories.
Click to hide internal directories.