mirror of
https://github.com/langgenius/dify.git
synced 2026-05-26 22:00:53 -04:00
feat: implement blob chunk handling in plugin manager (#18101)
This commit is contained in:
@@ -82,7 +82,7 @@ class BasePluginManager:
|
||||
Make a stream request to the plugin daemon inner API
|
||||
"""
|
||||
response = self._request(method, path, headers, data, params, files, stream=True)
|
||||
for line in response.iter_lines():
|
||||
for line in response.iter_lines(chunk_size=1024 * 8):
|
||||
line = line.decode("utf-8").strip()
|
||||
if line.startswith("data:"):
|
||||
line = line[5:].strip()
|
||||
|
||||
Reference in New Issue
Block a user