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.

feat: fix completion log error (#692)

takatost12ecf89a87d3
diff --git a/api/controllers/console/app/conversation.py b/api/controllers/console/app/conversation.py
index b35b31449dd..fdca10f94a0 100644
--- a/api/controllers/console/app/conversation.py
+++ b/api/controllers/console/app/conversation.py
@@ -95,7 +95,7 @@ class CompletionConversationApi(Resource):
'status': fields.String,
'from_source': fields.String,
'from_end_user_id': fields.String,
- 'from_end_user_session_id': fields.String(attribute='end_user.session_id'),
+ 'from_end_user_session_id': fields.String(),
'from_account_id': fields.String,
'read_at': TimestampField,
'created_at': TimestampField,
@@ -136,8 +136,6 @@ class CompletionConversationApi(Resource):
query = db.select(Conversation).where(Conversation.app_id == app.id, Conversation.mode == 'completion')
- query = query.options(joinedload(Conversation.end_user))
-
if args['keyword']:
query = query.join(
Message, Message.conversation_id == Conversation.id