From d8252c3971ec3e78e0d4beaafcdc5f3d24c498e1 Mon Sep 17 00:00:00 2001 From: Yeuoly Date: Mon, 2 Dec 2024 14:26:53 +0800 Subject: [PATCH] fix: system summarize --- internal/core/dify_invocation/types.go | 2 +- internal/core/plugin_daemon/backwards_invocation/task.go | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/internal/core/dify_invocation/types.go b/internal/core/dify_invocation/types.go index e6662ea..920fc58 100644 --- a/internal/core/dify_invocation/types.go +++ b/internal/core/dify_invocation/types.go @@ -28,7 +28,7 @@ const ( INVOKE_TYPE_APP InvokeType = "app" INVOKE_TYPE_STORAGE InvokeType = "storage" INVOKE_TYPE_ENCRYPT InvokeType = "encrypt" - INVOKE_TYPE_SUMMARY InvokeType = "summary" + INVOKE_TYPE_SYSTEM_SUMMARY InvokeType = "system_summary" INVOKE_TYPE_UPLOAD_FILE InvokeType = "upload_file" ) diff --git a/internal/core/plugin_daemon/backwards_invocation/task.go b/internal/core/plugin_daemon/backwards_invocation/task.go index 5ad7cd2..fd2b631 100644 --- a/internal/core/plugin_daemon/backwards_invocation/task.go +++ b/internal/core/plugin_daemon/backwards_invocation/task.go @@ -133,7 +133,7 @@ var ( }, "error": "permission denied, you need to enable storage access in plugin manifest", }, - dify_invocation.INVOKE_TYPE_SUMMARY: { + dify_invocation.INVOKE_TYPE_SYSTEM_SUMMARY: { "func": func(declaration *plugin_entities.PluginDeclaration) bool { return declaration.Resource.Permission.AllowInvokeLLM() }, @@ -232,8 +232,8 @@ var ( dify_invocation.INVOKE_TYPE_STORAGE: func(handle *BackwardsInvocation) { genericDispatchTask(handle, executeDifyInvocationStorageTask) }, - dify_invocation.INVOKE_TYPE_SUMMARY: func(handle *BackwardsInvocation) { - genericDispatchTask(handle, executeDifyInvocationSummaryTask) + dify_invocation.INVOKE_TYPE_SYSTEM_SUMMARY: func(handle *BackwardsInvocation) { + genericDispatchTask(handle, executeDifyInvocationSystemSummaryTask) }, dify_invocation.INVOKE_TYPE_UPLOAD_FILE: func(handle *BackwardsInvocation) { genericDispatchTask(handle, executeDifyInvocationUploadFileTask) @@ -539,7 +539,7 @@ func executeDifyInvocationStorageTask( } } -func executeDifyInvocationSummaryTask( +func executeDifyInvocationSystemSummaryTask( handle *BackwardsInvocation, request *dify_invocation.InvokeSummaryRequest, ) {