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

Method make_request

backend/python/mlx/test.py:151–153  ·  view source on GitHub ↗
(prompt)

Source from the content-addressed store, hash-verified

149 self.assertTrue(response.success)
150
151 def make_request(prompt):
152 req = backend_pb2.PredictOptions(Prompt=prompt, Tokens=20)
153 return stub.Predict(req)
154
155 # Run 5 concurrent requests with different prompts
156 prompts = [

Callers

nothing calls this directly

Calls 1

PredictMethod · 0.65

Tested by

no test coverage detected