diff --git a/api/fields/conversation_fields.py b/api/fields/conversation_fields.py
index bf1c491a05..2eb19c2667 100644
--- a/api/fields/conversation_fields.py
+++ b/api/fields/conversation_fields.py
@@ -121,6 +121,7 @@ conversation_fields = {
"from_account_name": fields.String,
"read_at": TimestampField,
"created_at": TimestampField,
+ "updated_at": TimestampField,
"annotation": fields.Nested(annotation_fields, allow_null=True),
"model_config": fields.Nested(simple_model_config_fields),
"user_feedback_stats": fields.Nested(feedback_stat_fields),
@@ -182,6 +183,7 @@ conversation_detail_fields = {
"from_end_user_id": fields.String,
"from_account_id": fields.String,
"created_at": TimestampField,
+ "updated_at": TimestampField,
"annotated": fields.Boolean,
"introduction": fields.String,
"model_config": fields.Nested(model_config_fields),
@@ -197,6 +199,7 @@ simple_conversation_fields = {
"status": fields.String,
"introduction": fields.String,
"created_at": TimestampField,
+ "updated_at": TimestampField,
}
conversation_infinite_scroll_pagination_fields = {
diff --git a/web/app/components/develop/template/template_advanced_chat.en.mdx b/web/app/components/develop/template/template_advanced_chat.en.mdx
index 7d80367ce4..6642c5cedc 100644
--- a/web/app/components/develop/template/template_advanced_chat.en.mdx
+++ b/web/app/components/develop/template/template_advanced_chat.en.mdx
@@ -656,6 +656,11 @@ Chat applications support session persistence, allowing previous chat history to
Return only pinned conversations as `true`, only non-pinned as `false`
+
+ Sorting Field (Optional), Default: -updated_at (sorted in descending order by update time)
+ - Available Values: created_at, -created_at, updated_at, -updated_at
+ - The symbol before the field represents the order or reverse, "-" represents reverse order.
+
### Response
diff --git a/web/app/components/develop/template/template_advanced_chat.zh.mdx b/web/app/components/develop/template/template_advanced_chat.zh.mdx
index 690d700f05..8e64d63ac5 100755
--- a/web/app/components/develop/template/template_advanced_chat.zh.mdx
+++ b/web/app/components/develop/template/template_advanced_chat.zh.mdx
@@ -691,6 +691,11 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
只返回置顶 true,只返回非置顶 false
+
+ 排序字段(选题),默认 -updated_at(按更新时间倒序排列)
+ - 可选值:created_at, -created_at, updated_at, -updated_at
+ - 字段前面的符号代表顺序或倒序,-代表倒序
+
### Response
diff --git a/web/app/components/develop/template/template_chat.en.mdx b/web/app/components/develop/template/template_chat.en.mdx
index 907a1ab0b4..a94016ca3a 100644
--- a/web/app/components/develop/template/template_chat.en.mdx
+++ b/web/app/components/develop/template/template_chat.en.mdx
@@ -690,6 +690,11 @@ Chat applications support session persistence, allowing previous chat history to
Return only pinned conversations as `true`, only non-pinned as `false`
+
+ Sorting Field (Optional), Default: -updated_at (sorted in descending order by update time)
+ - Available Values: created_at, -created_at, updated_at, -updated_at
+ - The symbol before the field represents the order or reverse, "-" represents reverse order.
+
### Response
diff --git a/web/app/components/develop/template/template_chat.zh.mdx b/web/app/components/develop/template/template_chat.zh.mdx
index f6dc7daa1e..92b13b2c7d 100644
--- a/web/app/components/develop/template/template_chat.zh.mdx
+++ b/web/app/components/develop/template/template_chat.zh.mdx
@@ -705,6 +705,11 @@ import { Row, Col, Properties, Property, Heading, SubProperty } from '../md.tsx'
只返回置顶 true,只返回非置顶 false
+
+ 排序字段(选题),默认 -updated_at(按更新时间倒序排列)
+ - 可选值:created_at, -created_at, updated_at, -updated_at
+ - 字段前面的符号代表顺序或倒序,-代表倒序
+
### Response