| | |
| | | }, |
| | | 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`), ''), |
| | |
| | | // 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`), ''), |
| | |
| | | empty_response: "", |
| | | prologue: "你好! 我是你的助理,有什么可以帮到你的吗?", |
| | | quote: true, |
| | | self_rag: true, |
| | | self_rag: false, |
| | | system: "你是一个智能助手,请总结知识库的内容来回答问题,请列举知识库中的数据详细回答。当所有知识库内容都与问题无关时,你的回答必须包括“知识库中未找到您要的答案!”这句话。" + |
| | | "回答需要考虑聊天历史。\n 以下是知识库:\n {knowledge}\n 以上是知识库。", |
| | | parameters: [ |
| | |
| | | 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({ |
| | |
| | | visible.value = true; |
| | | }; |
| | | |
| | | defineExpose({ |
| | | handleClick, |
| | | }); |
| | | const handleBeforeOk = (done) => { |
| | | formRef.value.validate().then((res) => { |
| | | console.log('form:', form); |
| | |
| | | <div |
| | | class="groupList" |
| | | :class="{ |
| | | groupActive: keyBg == '1', |
| | | groupNoActive: keyBg != '1', |
| | | groupActive: keyBg == index, |
| | | groupNoActive: keyBg != index, |
| | | }" |
| | | v-for="(item, index) in listData" |
| | | :key="index" |
| | |
| | | <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> |
| | |
| | | </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> |
| | |
| | | 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']) |
| | |
| | | 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); |
| | |
| | | "@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" |