mirror of
https://github.com/langgenius/dify.git
synced 2026-08-01 09:50:50 +08:00
docs: fix typos in api comments and prompt example (#39838)
This commit is contained in:
parent
4b415e7d6b
commit
0d8c02ca62
@ -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"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user