Kaynağa Gözat

开启新对话新增用户名称和部门名称字段

songxy 1 ay önce
ebeveyn
işleme
115fbfa85e

+ 1 - 0
ais_search_zj/web/components.d.ts

@@ -14,6 +14,7 @@ declare module 'vue' {
     BasicCurdPage: typeof import('./src/components/curd/BasicCurdPage.vue')['default']
     BasicCurdPageFrame: typeof import('./src/components/curd/frame/BasicCurdPageFrame.vue')['default']
     BasicQueryForm: typeof import('./src/components/query/BasicQueryForm.vue')['default']
+    copy: typeof import('./src/components/pdf/PDFViewerSearch copy.vue')['default']
     HomeCard: typeof import('./src/components/home-card/HomeCard.vue')['default']
     IframePage: typeof import('./src/components/iframe-page/IframePage.vue')['default']
     MarkdownToc: typeof import('./src/components/markdown-toc/MarkdownToc.vue')['default']

+ 5 - 1
ais_search_zj/web/src/views/ai-home/index.vue

@@ -718,6 +718,7 @@ const quest = async (isFllow) => {
   } else if (activeTab.value === 'original') {
     body = {
       query: question.value,
+      history: isFllow ? getFlowHistory() : [],
       stream: true
     }
   }
@@ -1048,7 +1049,9 @@ const sessionId = ref('');
 const sessionCreate = () => {
   const sendData = {
     tittle: historys.value[historyIndex].currentResponse.question,
-    creator: userStore.user.syUser.Id
+    creator: userStore.user.syUser.Id,
+    userName: userStore.user.syUser.Name,
+    deptName: userStore.user.syUser.OrganizationLine
   }
   ManagerAPI.create(sendData).then((res) => {
     if (res.data) {
@@ -1186,6 +1189,7 @@ const collectQuestion = () => {
 const questions = ref([]);
 
 const getQuestionKeyWords = async () => {
+  return;
   const { question } = historys.value[historyIndex].currentResponse;
   const myHeaders = new Headers();
   myHeaders.append('Content-Type', 'application/json');

+ 6 - 5
ais_search_zj/web/src/views/ai-search/ai-search.vue

@@ -69,7 +69,7 @@
                         overflow: hidden;
                         animation: scroll-text-992e3d76 25s linear infinite;
                       "
-                      v-if="st.key < 3 && askType === 'tdsc'"
+                      v-if="st.key <think 3 && askType === 'tdsc'"
                     >
                       <div
                         :title="t"
@@ -152,10 +152,10 @@
                                       currentResponse.streamMsg.indexOf('###')
                                     )
                                   : currentResponse.streamMsg
-                                : currentResponse.msg.indexOf('###') > -1
+                                : currentResponse.msg.indexOf('</think>') > -1
                                 ? currentResponse.msg.substring(
                                     0,
-                                    currentResponse.msg.indexOf('###')
+                                    currentResponse.msg.indexOf('</think>')
                                   )
                                 : currentResponse.msg
                             "
@@ -178,8 +178,8 @@
                               )
                             : ''
                           : dsChecked
-                          ? currentResponse.msg.indexOf('###') > -1
-                            ? currentResponse.msg.substring(currentResponse.msg.indexOf('###'))
+                          ? currentResponse.msg.indexOf('</think>') > -1
+                            ? currentResponse.msg.substring(currentResponse.msg.indexOf('</think>'))
                             : ''
                           : currentResponse.msg
                       "
@@ -1621,6 +1621,7 @@ const changeRecommendedQuestions = () => {
 };
 
 const getQuestionKeyWords = async () => {
+  return;
   const { question } = currentResponse.value;
   const myHeaders = new Headers();
   myHeaders.append('Content-Type', 'application/json');

+ 2 - 2
ais_search_zj/web/vite.config.js

@@ -62,9 +62,9 @@ export default defineConfig({
           rewrite: function (path) { return path.replace(/^\/aisChat/, ''); }
       },
       '/aiServer': {
-        // target: 'http://localhost:9999/',
+          target: 'http://10.10.8.222:20331/',
           // target: 'https://zjugpt.com/llm',
-          target: 'https://ai.zrzyt.zj.gov.cn:10086/aiServer',
+          // target: 'https://ai.zrzyt.zj.gov.cn:10086/aiServer',
           // target: 'https://zdzy.zrzyt.zj.gov.cn/aisKnowledge',
           changeOrigin: true,
           rewrite: function (path) { return path.replace(/^\/aiServer/, ''); }