MCPcopy Create free account
hub / github.com/Dispatcharr/Dispatcharr / _decode_chunk

Function _decode_chunk

apps/output/streaming_chunk_cache.py:36–41  ·  view source on GitHub ↗
(chunk)

Source from the content-addressed store, hash-verified

34
35
36def _decode_chunk(chunk):
37 if chunk is None:
38 return None
39 if isinstance(chunk, bytes):
40 return chunk.decode("utf-8")
41 return chunk
42
43
44def _encode_chunk(chunk):

Callers 3

_get_statusFunction · 0.85
_stream_readyFunction · 0.85
_stream_followFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected