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

Function streaming

core/services/cloudproxy/proxy.go:31–39  ·  view source on GitHub ↗
(body []byte)

Source from the content-addressed store, hash-verified

29}
30
31func streaming(body []byte) bool {
32 var probe struct {
33 Stream bool `json:"stream"`
34 }
35 if err := json.Unmarshal(body, &probe); err != nil {
36 return false
37 }
38 return probe.Stream
39}
40
41// passthroughError emits the upstream's error response unchanged.
42func passthroughError(c echo.Context, statusCode int, contentType string, body io.Reader) error {

Callers 2

ForwardViaBackendFunction · 0.85
proxy_test.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected