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

Method Embedding

backend/python/mlx-distributed/backend.py:377–381  ·  view source on GitHub ↗
(self, request, context)

Source from the content-addressed store, hash-verified

375 print(f"Error inserting cache: {e}", file=sys.stderr)
376
377 def Embedding(self, request, context):
378 print("Embeddings not supported in MLX distributed backend", file=sys.stderr)
379 context.set_code(grpc.StatusCode.UNIMPLEMENTED)
380 context.set_details("Embeddings are not supported in the MLX distributed backend.")
381 return backend_pb2.EmbeddingResult()
382
383 async def TokenizeString(self, request, context):
384 if not hasattr(self, "tokenizer") or self.tokenizer is None:

Callers

nothing calls this directly

Calls 2

set_codeMethod · 0.45
set_detailsMethod · 0.45

Tested by

no test coverage detected