MCPcopy Create free account
hub / github.com/DVampire/FinAgent / encode_image

Function encode_image

finagent/provider/provider.py:454–456  ·  view source on GitHub ↗
(image_path)

Source from the content-addressed store, hash-verified

452 return messages
453
454def encode_image(image_path):
455 with open(image_path, "rb") as image_file:
456 return base64.b64encode(image_file.read()).decode('utf-8')

Callers 2

to_messageMethod · 0.90
assemble_promptMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected