fix: custom tool parser

This commit is contained in:
Yeuoly
2024-11-01 14:26:56 +08:00
parent 6fd0a55b00
commit 8c2dbe876f
3 changed files with 26 additions and 17 deletions

View File

@ -198,7 +198,7 @@ class WorkflowToolManageService:
user_tool_provider = ToolTransformService.workflow_provider_to_user_provider(
provider_controller=tool, labels=labels.get(tool.provider_id, [])
)
ToolTransformService.repack_provider(user_tool_provider)
ToolTransformService.repack_provider(tenant_id=tenant_id, provider=user_tool_provider)
user_tool_provider.tools = [
ToolTransformService.convert_tool_entity_to_api_entity(
tool=tool.get_tools(tenant_id)[0],