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

Method _call

examples/high_level_api/langchain_custom_llm.py:22–24  ·  view source on GitHub ↗
(self, prompt: str, stop: Optional[List[str]] = None)

Source from the content-addressed store, hash-verified

20 super().__init__(model_path=model_path, llm=llm, **kwargs)
21
22 def _call(self, prompt: str, stop: Optional[List[str]] = None) -> str:
23 response = self.llm(prompt, stop=stop or [])
24 return response["choices"][0]["text"]
25
26 @property
27 def _identifying_params(self) -> Mapping[str, Any]:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected