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.

docs: fix typos in api comments and prompt example (#39838)

iridescentWen0d8c02ca62dd
diff --git a/api/core/llm_generator/prompts.py b/api/core/llm_generator/prompts.py
index 3c6f8c468a0..97cd8a812a7 100644
--- a/api/core/llm_generator/prompts.py
+++ b/api/core/llm_generator/prompts.py
@@ -254,7 +254,7 @@ Your task is to convert simple user descriptions into properly formatted JSON Sc
}
### Example 4:
-**User Input:** I need album schema, the ablum has songs, and each song has name, duration, and artist.
+**User Input:** I need album schema, the album has songs, and each song has name, duration, and artist.
**JSON Schema Output:**
{
"type": "object",
@@ -273,7 +273,7 @@ Your task is to convert simple user descriptions into properly formatted JSON Sc
"duration": {
"type": "string"
},
- "aritst": {
+ "artist": {
"type": "string"
}
},
@@ -281,7 +281,7 @@ Your task is to convert simple user descriptions into properly formatted JSON Sc
"name",
"id",
"duration",
- "aritst"
+ "artist"
]
}
}
diff --git a/api/core/workflow/nodes/human_input/pause_reason.py b/api/core/workflow/nodes/human_input/pause_reason.py
index 934219392f0..26c28691508 100644
--- a/api/core/workflow/nodes/human_input/pause_reason.py
+++ b/api/core/workflow/nodes/human_input/pause_reason.py
@@ -15,8 +15,8 @@ class DifyHITLEventType(StrEnum):
"""
- # Ideally this should be a string constaint. However, we cannot put
- # string constant into Literal type cosntructor. We have to warp it as a
+ # Ideally this should be a string constraint. However, we cannot put
+ # string constant into Literal type constructor. We have to wrap it as a
# string enumeration.
HUMAN_INPUT_REQUIRED = PauseReasonType.LEGACY_HUMAN_INPUT_REQUIRED.value
diff --git a/api/tasks/delete_conversation_task.py b/api/tasks/delete_conversation_task.py
index 0b392f60965..6f426fe7fb0 100644
--- a/api/tasks/delete_conversation_task.py
+++ b/api/tasks/delete_conversation_task.py
@@ -17,7 +17,7 @@ logger = logging.getLogger(__name__)
@shared_task(queue="conversation")
def delete_conversation_related_data(conversation_id: str):
"""
- Delete related data conversation in correct order from datatbase to respect foreign key constraints
+ Delete related data conversation in correct order from database to respect foreign key constraints
Args:
conversation_id: conversation Id