Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadRequest = fmt.Errorf("bad request") ErrModelNotFound = fmt.Errorf("model not found") )
Functions ¶
func MergeModelAdapter ¶
MergeModelAdapter merges a model and adapter name into a single string.
func SplitModelAdapter ¶
SplitModelAdapter splits a requested model name into KubeAI Model.metadata.name and Model.spec.adapters[].name.
Types ¶
type ModelClient ¶ added in v0.13.0
type Request ¶ added in v0.13.0
type Request struct { Body []byte Selectors []string ID string // RequestedModel is the model name requested by the client. // This might contain the adapter name as well. RequestedModel string Model string Adapter string LoadBalancing v1.LoadBalancing Prefix string ContentLength int64 // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.