MCPcopy
hub / github.com/mudler/LocalAI / BasicModelRequest

Struct BasicModelRequest

core/schema/request.go:9–16  ·  view source on GitHub ↗

@Description BasicModelRequest contains the basic model request fields

Source from the content-addressed store, hash-verified

7
8// @Description BasicModelRequest contains the basic model request fields
9type BasicModelRequest struct {
10 Model string `json:"model,omitempty" yaml:"model,omitempty"`
11 // TODO: Should this also include the following fields from the OpenAI side of the world?
12 // If so, changes should be made to core/http/middleware/request.go to match
13
14 // Context context.Context `json:"-"`
15 // Cancel context.CancelFunc `json:"-"`
16}
17
18func (bmr *BasicModelRequest) ModelName(s *string) string {
19 if s != nil {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected