MCPcopy Index your code
hub / github.com/Lightning-AI/LitServe / encode_response

Method encode_response

tests/unit/test_litapi.py:61–64  ·  view source on GitHub ↗
(self, output_stream)

Source from the content-addressed store, hash-verified

59 yield np.asarray(x) * i
60
61 def encode_response(self, output_stream):
62 for output in output_stream:
63 output = list(output)
64 yield [{"output": o} for o in output]
65
66
67def test_default_batch_unbatch():

Calls

no outgoing calls

Tested by

no test coverage detected