Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/1Panel-dev/MaxKB
/ stream_image
Function
stream_image
apps/chat/views/chat.py:36–40 ·
view source on GitHub ↗
生成器函数,用于流式传输图片数据
(response)
Source
from the content-addressed store, hash-verified
34
35
36
def
stream_image(response):
37
""
"生成器函数,用于流式传输图片数据"
""
38
for
chunk in response.iter_content(chunk_size=4096):
39
if
chunk:
# 过滤掉保持连接的空块
40
yield
chunk
41
42
43
class
ResourceProxy(APIView):
Callers
1
get
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected