liudong
2024-08-08 3a6672e564e37ebe29099b5c84b74041cbf2144e
智能体测试和配置bug页面修改
5个文件已修改
47 ■■■■■ 已修改文件
config/vite.config.dev.ts 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/IntelligentAgent/components/agentConfig.vue 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/knowledgeLib/eidtDetails.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/dmx/knowledgeLib/tool.vue 21 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
yarn.lock 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
config/vite.config.dev.ts
@@ -13,7 +13,8 @@
      },
      proxy: {
        '/base': {
          target: 'http://aiotlink.com:8189',
          // target: 'http://aiotlink.com:8189',
          target: 'http://192.168.20.116:8089',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
@@ -21,17 +22,15 @@
          // secure: false
        },
        '/api': {
          // target: 'http://192.168.20.116:1080',
          // target: 'http://192.168.20.158:8089',
          target: 'http://aiotlink.com:8189',
          // target: 'http://aiotlink.com:8189',
          target: 'http://192.168.20.116:8089',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
        },
        '/api/v1': {
          // target: 'http://192.168.20.116:1080',
          // target: 'http://192.168.20.158:8089',
          target: 'http://aiotlink.com:8189',
          // target: 'http://aiotlink.com:8189',
          target: 'http://192.168.20.116:8089',
          changeOrigin: true,
          ws: true,
          // rewrite: (path) => path.replace(new RegExp(`^/basic-api`), ''),
src/views/dmx/IntelligentAgent/components/agentConfig.vue
@@ -283,7 +283,7 @@
    empty_response: "",
    prologue: "你好! 我是你的助理,有什么可以帮到你的吗?",
    quote: true,
    self_rag: true,
    self_rag: false,
    system: "你是一个智能助手,请总结知识库的内容来回答问题,请列举知识库中的数据详细回答。当所有知识库内容都与问题无关时,你的回答必须包括“知识库中未找到您要的答案!”这句话。" +
      "回答需要考虑聊天历史。\n        以下是知识库:\n        {knowledge}\n        以上是知识库。",
    parameters: [
src/views/dmx/knowledgeLib/eidtDetails.vue
@@ -77,8 +77,7 @@
  import { achunkCreate } from '@/api/kbList';
  const props = defineProps(['item']);
  const visible = ref(false);
  const visible =defineModel('eidtDilVisible');
  const keyVisible = ref(false);
  const loading = ref(false);
  const form = reactive({
@@ -112,9 +111,6 @@
    visible.value = true;
  };
  defineExpose({
    handleClick,
  });
  const handleBeforeOk = (done) => {
    formRef.value.validate().then((res) => {
      console.log('form:', form);
src/views/dmx/knowledgeLib/tool.vue
@@ -274,8 +274,8 @@
                <div
                  class="groupList"
                  :class="{
                    groupActive: keyBg == '1',
                    groupNoActive: keyBg != '1',
                    groupActive: keyBg == index,
                    groupNoActive: keyBg != index,
                  }"
                  v-for="(item, index) in listData"
                  :key="index"
@@ -283,8 +283,8 @@
                  <a-checkbox :value="item.chunk_id"></a-checkbox>
                  <div
                    class="groupList-content emphaRed"
                    @click="groupListContentClick('1')"
                    @dblclick="contentClick(1)"
                    @click="groupListContentClick(index)"
                    @dblclick="contentClick(item)"
                    v-html="item.content_with_weight"
                  >
                  </div>
@@ -301,7 +301,11 @@
            </a-spin>
          </div>
        </div>
        <eidtDetails ref="eidtDil"></eidtDetails>
        <eidtDetails
          ref="eidtDil"
          :item="eidtDilinfo"
          v-model:eidtDilVisible="eidtDilVisible"
        ></eidtDetails>
      </a-tab-pane>
    </a-tabs>
  </a-modal>
@@ -331,6 +335,8 @@
  const radio = ref('1');
  const keyBg = ref('');
  const eidtDil = ref();
  const eidtDilVisible = ref(false);
  const eidtDilinfo = reactive({});
  const props = defineProps(['kbtenantInfo', 'item', 'kbdetail']);
  // const emit =  defineEmits(['upTabdateItem'])
@@ -438,8 +444,9 @@
    visible.value = false;
  };
  const contentClick = (done) => {
    eidtDil.value.handleClick();
  const contentClick = (item) => {
    Object.assign(eidtDilinfo, item);
    eidtDilVisible.value = true;
  };
  const handleOpened = (el) => {
    // console.log('props',props.kbtenantInfo);
yarn.lock
@@ -621,6 +621,11 @@
    "@jridgewell/resolve-uri" "^3.1.0"
    "@jridgewell/sourcemap-codec" "^1.4.14"
"@microsoft/fetch-event-source@^2.0.1":
  version "2.0.1"
  resolved "https://registry.npmmirror.com/@microsoft/fetch-event-source/-/fetch-event-source-2.0.1.tgz#9ceecc94b49fbaa15666e38ae8587f64acce007d"
  integrity sha512-W6CLUJ2eBMw3Rec70qrsEW0jOm/3twwJv21mrmj2yORiaVmVYGS4sSS5yUwvQc1ZlDLYGPnClVWmUUMagKNsfA==
"@mrmlnc/readdir-enhanced@^2.2.1":
  version "2.2.1"
  resolved "https://registry.npmmirror.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz"