MCPcopy Create free account
hub / github.com/NanGePlus/LightRAGTest / hf_model_complete

Function hf_model_complete

LightRAG/lightrag/llm.py:509–519  ·  view source on GitHub ↗
(
    prompt, system_prompt=None, history_messages=[], **kwargs
)

Source from the content-addressed store, hash-verified

507
508
509async def hf_model_complete(
510 prompt, system_prompt=None, history_messages=[], **kwargs
511) -> str:
512 model_name = kwargs["hashing_kv"].global_config["llm_model_name"]
513 return await hf_model_if_cache(
514 model_name,
515 prompt,
516 system_prompt=system_prompt,
517 history_messages=history_messages,
518 **kwargs,
519 )
520
521
522async def ollama_model_complete(

Callers

nothing calls this directly

Calls 1

hf_model_if_cacheFunction · 0.85

Tested by

no test coverage detected