MCPcopy Create free account
hub / github.com/HisMax/RedInk / encoded_payload

Function encoded_payload

tests/image_api_client_test.py:36–37  ·  view source on GitHub ↗
(data=b"image-bytes")

Source from the content-addressed store, hash-verified

34
35
36def encoded_payload(data=b"image-bytes"):
37 return {"data": [{"b64_json": base64.b64encode(data).decode("ascii")}]}
38
39
40def test_real_models_do_not_send_response_format_by_default():

Calls

no outgoing calls

Tested by

no test coverage detected