From 923f49266b00bd05bf8a4037b29ecb706d1306ff Mon Sep 17 00:00:00 2001
From: houzhongjian <houzhongyi@126.com>
Date: 星期三, 18 六月 2025 09:03:33 +0800
Subject: [PATCH] 转炉大模型功能完善

---
 src/views/ai/dashboard/components/conversation/CommonConversation.vue |   23 ++++-------------------
 1 files changed, 4 insertions(+), 19 deletions(-)

diff --git a/src/views/ai/dashboard/components/conversation/CommonConversation.vue b/src/views/ai/dashboard/components/conversation/CommonConversation.vue
index 04137e7..5d41a42 100644
--- a/src/views/ai/dashboard/components/conversation/CommonConversation.vue
+++ b/src/views/ai/dashboard/components/conversation/CommonConversation.vue
@@ -147,7 +147,7 @@
 import * as authUtil from "@/utils/auth";
 import {refreshToken} from "@/api/login";
 import {formatToDateTime} from "@/utils/dateUtil";
-import {ElLoading} from "element-plus";
+import { formatReasoningContent } from '@/views/ai/utils/utils'
 
 /** AI 聊天对话 列表 */
 defineOptions({ name: 'NormalConversation' })
@@ -347,23 +347,6 @@
   return []
 })
 
-// //处理调度推理结论(deepSeek)
-// const dealResult = (conversations: any) => {
-//   const regex = /<think>(\n*)([\s\S]*?)(\n*)<\/think>(\n*)([\s\S]*)/;
-//   conversations.forEach((conversation) => {
-//     if(conversation.content.includes('<\/think>')) {
-//       conversation.thinkingFlag = false
-//     } else {
-//       conversation.thinkingFlag = true
-//     }
-//     const match = conversation.content.match(regex);
-//     if(match) {
-//       conversation.thinking = match[2];
-//       conversation.conclusion = match[5]
-//     }
-//   })
-// }
-
 //处理调度推理结论(微调大模型)
 const dealResult = (messages: any) => {
   messages.forEach((message) => {
@@ -378,6 +361,8 @@
       } else {
         message.thinking = message.content
       }
+      // 处理推理思路内容
+      message.thinking = formatReasoningContent(message.thinking);
     }
   })
 }
@@ -691,7 +676,7 @@
   position: absolute;
   left: 320px;  // 初始展开位置
   top: 40%;
-  z-index: 1000;
+  z-index: 1;
   width: 20px;
   height: 80px;
   background: rgba(115, 196, 255, 0.5);

--
Gitblit v1.9.3