feat: implement blob chunk handling in plugin manager (#18101)

This commit is contained in:
Yeuoly
2025-04-15 19:23:03 +08:00
committed by GitHub
parent 7161d7ad96
commit d619fa1767
3 changed files with 68 additions and 3 deletions

View File

@@ -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()