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 logger warning and docstrings (#44134)

Power8428ced558c8
diff --git a/api/services/legacy_model_type_migration.py b/api/services/legacy_model_type_migration.py
index 7fcbb95c421..26a7abecedc 100644
--- a/api/services/legacy_model_type_migration.py
+++ b/api/services/legacy_model_type_migration.py
@@ -179,7 +179,7 @@ class _TenantDefaultModelBusinessKey(_BusinessKey):
@dataclass(frozen=True, slots=True)
class _ProviderModelSettingBusinessKey(_BusinessKey):
"""Although `ProviderModelSetting` does not have the unique index
- (tenant_id, provider_name. model_name, model_type). The acutal business logic
+ (tenant_id, provider_name. model_name, model_type). The actual business logic
relies on this uniqueness property heavily.
"""
@@ -203,7 +203,7 @@ class _LoadBalancingModelConfigInheritBusinessKey(_BusinessKey):
class _ProviderModelCredentialBusinessKey(_BusinessKey):
"""Although `ProviderModelCredential` does not have the unique index
(tenant_id, provider_name. model_name, model_type, credential_name).
- The acutal business logic implies it."""
+ The actual business logic implies it."""
tenant_id: str
provider_name: str
diff --git a/api/services/trigger/webhook_service.py b/api/services/trigger/webhook_service.py
index 7381e9b3e36..df7ccc1af32 100644
--- a/api/services/trigger/webhook_service.py
+++ b/api/services/trigger/webhook_service.py
@@ -846,7 +846,7 @@ class WebhookService:
try:
# NOTE: don not use `with sessionmaker(bind=db.engine, expire_on_commit=False).begin()`
- # trigger_workflow_async need to handle multipe session commits internally
+ # trigger_workflow_async need to handle multiple session commits internally
with Session(db.engine, expire_on_commit=False) as session:
AsyncWorkflowService.trigger_workflow_async(end_user, trigger_data, session=session)
quota_charge.commit()
diff --git a/api/services/workflow_draft_variable_service.py b/api/services/workflow_draft_variable_service.py
index e0a0c18d5c6..28bea6e3a90 100644
--- a/api/services/workflow_draft_variable_service.py
+++ b/api/services/workflow_draft_variable_service.py
@@ -403,7 +403,7 @@ class WorkflowDraftVariableService:
node_exec = self._api_node_execution_repo.get_execution_by_id(variable.node_execution_id)
if node_exec is None:
logger.warning(
- "Node exectution not found for draft variable, id=%s, name=%s, node_execution_id=%s",
+ "Node execution not found for draft variable, id=%s, name=%s, node_execution_id=%s",
variable.id,
variable.name,
variable.node_execution_id,