MCPcopy Create free account
hub / github.com/KnowledgeXLab/LeanRAG / __init__

Method __init__

CommonKG/kg_score.py:21–25  ·  view source on GitHub ↗
(self, args)

Source from the content-addressed store, hash-verified

19
20class llm_client():
21 def __init__(self, args):
22 self.model = args["llm_model"]
23 self.base_url = args["llm_url"]
24 self.api_key = args["llm_api_key"]
25 self.client = OpenAI(base_url=self.base_url, api_key=self.api_key, http_client=httpx.Client(verify=False))
26 def call(self, user_prompt: str, system_prompt: str = "") -> str:
27
28 completion = self.client.chat.completions.create(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected