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

This commit is contained in:
iridescentWen 2026-07-31 13:30:53 +08:00 committed by GitHub
parent 4b415e7d6b
commit 0d8c02ca62
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 6 additions and 6 deletions

View File

@ -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"
]
}
}

View File

@ -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

View File

@ -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