MCPcopy Index your code
hub / github.com/mudler/LocalAI / PredictStream

Method PredictStream

backend/python/transformers/backend.py:470–476  ·  view source on GitHub ↗
(self, request, context)

Source from the content-addressed store, hash-verified

468 return res
469
470 async def PredictStream(self, request, context):
471 iterations = self._predict(request, context, streaming=True)
472 try:
473 async for iteration in iterations:
474 yield iteration
475 finally:
476 await iterations.aclose()
477
478 def SoundGeneration(self, request, context):
479 model_name = request.model

Callers

nothing calls this directly

Calls 1

_predictMethod · 0.95

Tested by

no test coverage detected