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

Method decode_text

examples/server/server.py:7851–7852  ·  view source on GitHub ↗
(data: bytes)

Source from the content-addressed store, hash-verified

7849
7850 @staticmethod
7851 def decode_text(data: bytes) -> str:
7852 return data.decode("utf-8", errors="ignore")
7853
7854 @staticmethod
7855 def encode_sse_payload(payload: BaseModel | Dict[str, Any]) -> bytes:

Callers 4

returned_tokensMethod · 0.95
from_logitsMethod · 0.80

Calls 1

decodeMethod · 0.45

Tested by

no test coverage detected