Skip to content

Commit

Permalink
fix: system summarize
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeuoly committed Dec 2, 2024
1 parent 05b9823 commit d8252c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/core/dify_invocation/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
8 changes: 4 additions & 4 deletions internal/core/plugin_daemon/backwards_invocation/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
},
Expand Down Expand Up @@ -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)
Expand Down Expand Up @@ -539,7 +539,7 @@ func executeDifyInvocationStorageTask(
}
}

func executeDifyInvocationSummaryTask(
func executeDifyInvocationSystemSummaryTask(
handle *BackwardsInvocation,
request *dify_invocation.InvokeSummaryRequest,
) {
Expand Down

0 comments on commit d8252c3

Please sign in to comment.