MCPcopy Create free account
hub / github.com/BerriAI/litellm / invoke_chunk

Function invoke_chunk

tests/code_coverage_tests/test_provider_cache.py:923–924  ·  view source on GitHub ↗
(inner: JsonValue)

Source from the content-addressed store, hash-verified

921
922
923def invoke_chunk(inner: JsonValue) -> bytes:
924 return eventstream_event("chunk", {"bytes": base64.b64encode(json.dumps(inner).encode()).decode("ascii")})
925
926
927CONVERSE_STREAM_OK: Final = (

Calls 4

eventstream_eventFunction · 0.85
dumpsMethod · 0.80
decodeMethod · 0.45
encodeMethod · 0.45

Tested by

no test coverage detected