MCPcopy Create free account
hub / github.com/abetlen/llama-cpp-python / create_embedding

Function create_embedding

llama_cpp/server/app.py:366–373  ·  view source on GitHub ↗
(
    request: CreateEmbeddingRequest,
    llama_proxy: LlamaProxy = Depends(get_llama_proxy),
)

Source from the content-addressed store, hash-verified

364 tags=[openai_v1_tag],
365)
366async def create_embedding(
367 request: CreateEmbeddingRequest,
368 llama_proxy: LlamaProxy = Depends(get_llama_proxy),
369):
370 return await run_in_threadpool(
371 llama_proxy(request.model).create_embedding,
372 **request.model_dump(exclude={"user"}),
373 )
374
375
376@router.post(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…