Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dataease/SQLBot
/ iterfile
Function
iterfile
backend/apps/system/api/assistant.py:106–108 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
104
media_type =
"image/jpeg"
105
106
def
iterfile():
107
with
open(file_path, mode=
"rb"
)
as
f:
108
yield
from
f
109
110
return
StreamingResponse(iterfile(), media_type=media_type)
111
Callers
1
picture
Function · 0.85
Calls
1
open
Function · 0.85
Tested by
no test coverage detected