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

Method PredictStream

core/services/nodes/inflight_test.go:68–73  ·  view source on GitHub ↗
(_ context.Context, _ *pb.PredictOptions, fn func(reply *pb.Reply), _ ...ggrpc.CallOption)

Source from the content-addressed store, hash-verified

66}
67
68func (f *fakeGRPCBackend) PredictStream(_ context.Context, _ *pb.PredictOptions, fn func(reply *pb.Reply), _ ...ggrpc.CallOption) error {
69 for _, r := range f.streamReplies {
70 fn(r)
71 }
72 return f.streamErr
73}
74
75func (f *fakeGRPCBackend) Embeddings(_ context.Context, _ *pb.PredictOptions, _ ...ggrpc.CallOption) (*pb.EmbeddingResult, error) {
76 return &pb.EmbeddingResult{}, nil

Callers

nothing calls this directly

Calls 1

fnFunction · 0.50

Tested by

no test coverage detected