From a00f4a8b971e8bedefc297af61552e1bab6e3da7 Mon Sep 17 00:00:00 2001
From: xuyonghao <898441624@qq.com>
Date: 星期二, 12 十一月 2024 19:16:12 +0800
Subject: [PATCH] 毕昇与ragflow历史记录获取

---
 app/service/ragflow.py |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/app/service/ragflow.py b/app/service/ragflow.py
index 969f3b0..f4928d4 100644
--- a/app/service/ragflow.py
+++ b/app/service/ragflow.py
@@ -109,16 +109,13 @@
             response = await client.get(url, headers=headers)
             data = self._handle_response(response)
             session_log = {
-                "dialog_id": data.get("dialog_id"),
-                "id": data.get("id"),
-                "message": [
+                "session_log": [
                     {
-                        "content": message.get("content"),
+                        "message": message.get("content"),
                         "role": message.get("role"),
                     }
                     for message in data.get("message", [])
                 ],
-                "name": data.get("name"),
                 "reference": data.get("reference"),
             }
         return session_log

--
Gitblit v1.8.0