From e5e2be29cfc033c976558a4d0b5fa73426818b90 Mon Sep 17 00:00:00 2001
From: zhaoqingang <zhaoqg0118@163.com>
Date: 星期三, 26 二月 2025 11:30:48 +0800
Subject: [PATCH] 增加系统信息修改

---
 app/api/agent.py |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/app/api/agent.py b/app/api/agent.py
index fd31c96..d5c5ea8 100644
--- a/app/api/agent.py
+++ b/app/api/agent.py
@@ -192,6 +192,8 @@
             for i in session.log_to_json().get("message", []):
                 if i.get("role") == "user":
                     tmp_data["question"]=i.get("content")
+                    if "upload_filenames" in i:
+                        tmp_data["upload_filenames"] = i.get("upload_filenames")
                 elif i.get("role") == "assistant":
 
                     if isinstance(i.get("content"), dict):
@@ -231,6 +233,8 @@
             for i in session.log_to_json().get("message", []):
                 if i.get("role") == "user":
                     tmp_data["question"] = i.get("content")
+                    if "upload_filenames" in i:
+                        tmp_data["upload_filenames"] = i.get("upload_filenames")
                 elif i.get("role") == "assistant":
                     if isinstance(i.get("content"), dict):
                         content = i.get("content", {})

--
Gitblit v1.8.0