MCPcopy Create free account
hub / github.com/Lightning-AI/LitServe / encode_response

Method encode_response

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

Source from the content-addressed store, hash-verified

184def test_encode_response_with_custom_spec_api():
185 class CustomSpecAPI(ls.OpenAISpec):
186 def encode_response(self, output_stream):
187 for output in output_stream:
188 yield {"content": output}
189
190 api = ls.test_examples.TestAPI(max_batch_size=1)
191 api.request_timeout = 30

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected