From 0d8c02ca62dd273474f86a29ca7d8afc3099716d Mon Sep 17 00:00:00 2001 From: iridescentWen <66297467+iridescentWen@users.noreply.github.com> Date: Fri, 31 Jul 2026 13:30:53 +0800 Subject: [PATCH] docs: fix typos in api comments and prompt example (#39838) --- api/core/llm_generator/prompts.py | 6 +++--- api/core/workflow/nodes/human_input/pause_reason.py | 4 ++-- api/tasks/delete_conversation_task.py | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) 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