MCPcopy Index your code
hub / github.com/mudler/LocalAI / StartProcess

Method StartProcess

pkg/model/process.go:132–134  ·  view source on GitHub ↗

StartProcess starts a gRPC backend process and returns its process handle. This is the public wrapper for the internal startProcess method, used by the serve-backend CLI subcommand to start a backend on a specified address.

(grpcProcess, id string, serverAddress string, args ...string)

Source from the content-addressed store, hash-verified

130// This is the public wrapper for the internal startProcess method, used by
131// the serve-backend CLI subcommand to start a backend on a specified address.
132func (ml *ModelLoader) StartProcess(grpcProcess, id string, serverAddress string, args ...string) (*process.Process, error) {
133 return ml.startProcess(grpcProcess, id, serverAddress, args...)
134}
135
136func (ml *ModelLoader) startProcess(grpcProcess, id string, serverAddress string, args ...string) (*process.Process, error) {
137 // Make sure the process is executable

Callers 1

startBackendMethod · 0.80

Calls 1

startProcessMethod · 0.95

Tested by

no test coverage detected