Browse Source

fix: fields.Nested(message_file_fields) (#9632)

crazywoola 6 tháng trước cách đây
mục cha
commit
98bf7710e4
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/controllers/service_api/app/message.py

+ 1 - 1
api/controllers/service_api/app/message.py

@@ -48,7 +48,7 @@ class MessageListApi(Resource):
         "tool_input": fields.String,
         "created_at": TimestampField,
         "observation": fields.String,
-        "message_files": fields.List(fields.String),
+        "message_files": fields.List(fields.Nested(message_file_fields)),
     }
 
     message_fields = {