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.

chore(api): fix typos in config description and comment (#39870)

Jonyf6832fddee0d
diff --git a/api/configs/feature/__init__.py b/api/configs/feature/__init__.py
index 93b96689cc5..5dc8aed12c8 100644
--- a/api/configs/feature/__init__.py
+++ b/api/configs/feature/__init__.py
@@ -870,7 +870,7 @@ class WorkflowVariableTruncationConfig(BaseSettings):
)
WORKFLOW_VARIABLE_TRUNCATION_STRING_LENGTH: PositiveInt = Field(
100000,
- description="maximum length for string to trigger tuncation, measure in number of characters",
+ description="maximum length for string to trigger truncation, measure in number of characters",
)
WORKFLOW_VARIABLE_TRUNCATION_ARRAY_LENGTH: PositiveInt = Field(
1000,
diff --git a/api/controllers/console/human_input_form.py b/api/controllers/console/human_input_form.py
index 9700667f4aa..195254e1145 100644
--- a/api/controllers/console/human_input_form.py
+++ b/api/controllers/console/human_input_form.py
@@ -137,7 +137,7 @@ class ConsoleHumanInputFormApi(Resource):
self._ensure_console_access(form, current_tenant_id)
self._ensure_console_recipient_type(form)
recipient_type = form.recipient_type
- # The type checker is not smart enought to validate the following invariant.
+ # The type checker is not smart enough to validate the following invariant.
# So we need to assert it manually.
assert recipient_type is not None, "recipient_type cannot be None here."