MCPcopy
hub / github.com/ModelTC/LightLLM / read

Method read

lightllm/server/multimodal_params.py:53–58  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

51 raise ValueError(f"Failed to read image type={self._type}, data[:100]={self._data[:100]}: {e}!")
52
53 def read(self):
54 assert self._preload_data is not None
55 ans = self._preload_data
56 self._preload_data = None
57 self._data = None
58 return ans
59
60 def to_dict(self):
61 ret = {}

Callers 7

load_dataMethod · 0.45
loadMethod · 0.45
tensor2bytesFunction · 0.45
_try_load_cacheMethod · 0.45
image_to_base64Function · 0.45
read_md_filesFunction · 0.45

Calls

no outgoing calls

Tested by 1

image_to_base64Function · 0.36