refactor: unify blob chunk merging logic for plugin tool and agent (#24575)

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
Yeuoly
2025-08-26 21:15:23 +08:00
committed by GitHub
parent a2598fd134
commit d5e6e38c58
6 changed files with 556 additions and 56 deletions

View File

@@ -8,6 +8,7 @@ from core.plugin.entities.plugin_daemon import (
)
from core.plugin.entities.request import PluginInvokeContext
from core.plugin.impl.base import BasePluginClient
from core.plugin.utils.chunk_merger import merge_blob_chunks
class PluginAgentClient(BasePluginClient):
@@ -113,4 +114,4 @@ class PluginAgentClient(BasePluginClient):
"Content-Type": "application/json",
},
)
return response
return merge_blob_chunks(response)