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

Interface ForwardClient

pkg/grpc/client.go:822–827  ·  view source on GitHub ↗

ForwardClient is the duplex interface returned by (*Client).Forward. First Send carries path/method/headers/body, subsequent Sends carry body_chunk only. First Recv carries status/headers, subsequent Recvs carry body_chunk. Caller closes via CloseSend when request is done; stream ends when the upstr

Source from the content-addressed store, hash-verified

820// carry body_chunk. Caller closes via CloseSend when request is done;
821// stream ends when the upstream finishes and the server closes.
822type ForwardClient interface {
823 Send(*pb.ForwardRequest) error
824 Recv() (*pb.ForwardReply, error)
825 CloseSend() error
826 Context() context.Context
827}
828
829type forwardClient struct {
830 pb.Backend_ForwardClient

Callers 32

FeedMethod · 0.65
ModelTranscriptionLiveFunction · 0.65
session_test.goFile · 0.65
runTerminalChatFunction · 0.65

Implementers 6

scriptedForwardClientcore/services/cloudproxy/backend_forwa
infiniteForwardClientcore/services/cloudproxy/backend_forwa

Calls

no outgoing calls

Tested by

no test coverage detected