Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
454
def
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_message
Method · 0.90
assemble_prompt
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected