Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix(api): fix typos in trigger service, layers, and human input entities (#45680)

mechmaster20929c01ff9bd8
diff --git a/api/core/app/layers/trigger_post_layer.py b/api/core/app/layers/trigger_post_layer.py
index 95431350807..c7d502fd4d1 100644
--- a/api/core/app/layers/trigger_post_layer.py
+++ b/api/core/app/layers/trigger_post_layer.py
@@ -64,7 +64,7 @@ class TriggerPostLayer(Layer):
# Extract relevant data from result
outputs = self.runtime_state.outputs
- # BASICLY, workflow_execution_id is the same as workflow_run_id
+ # Basically, workflow_execution_id is the same as workflow_run_id
workflow_run_id = get_system_text(
self.runtime_state.variable_pool,
SystemVariableKey.WORKFLOW_EXECUTION_ID,
diff --git a/api/core/human_input_v2/entities.py b/api/core/human_input_v2/entities.py
index b8e801f00b3..74defde1539 100644
--- a/api/core/human_input_v2/entities.py
+++ b/api/core/human_input_v2/entities.py
@@ -106,11 +106,11 @@ class EmailProviderType(StrEnum):
# Organization candidate identifiers round-trip as stable Contact IDs.
OrganizationCandidateId = ContactId
-# Identifiers for synced IM identiies. This is not the same as user_id or account_id
-# on the IM provier side. It is the identifier for the synced IM user record in Dify.
+# Identifiers for synced IM identities. This is not the same as user_id or account_id
+# on the IM provider side. It is the identifier for the synced IM user record in Dify.
IMIdentityId = NewType("IMIdentityId", str)
-# Identifiers for a full IM user synchorization.
+# Identifiers for a full IM user synchronization.
IMSyncRunId = NewType("IMSyncRunId", str)
# Identifier for an IM binding, an association between an IM identity and a Dify contact.
diff --git a/api/core/trigger/utils/endpoint.py b/api/core/trigger/utils/endpoint.py
index b282d62d588..4971edacbd5 100644
--- a/api/core/trigger/utils/endpoint.py
+++ b/api/core/trigger/utils/endpoint.py
@@ -3,7 +3,7 @@ from yarl import URL
from configs import dify_config
"""
-Basic URL for thirdparty trigger services
+Basic URL for third-party trigger services
"""
base_url = URL(dify_config.TRIGGER_URL)
diff --git a/api/services/trigger/trigger_service.py b/api/services/trigger/trigger_service.py
index 911331e357c..04fa9ea4d56 100644
--- a/api/services/trigger/trigger_service.py
+++ b/api/services/trigger/trigger_service.py
@@ -54,7 +54,7 @@ class TriggerService:
node_data = TriggerEventNodeData.model_validate(node_config["data"], from_attributes=True)
request = TriggerHttpRequestCachingService.get_request(event.request_id)
payload = TriggerHttpRequestCachingService.get_payload(event.request_id)
- # invoke triger
+ # invoke trigger
provider_controller: PluginTriggerProviderController = TriggerManager.get_trigger_provider(
tenant_id, TriggerProviderID(subscription.provider_id)
)