@blueking/ai-ui-sdk 0.1.12-beta.5 → 0.1.12-beta.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/common/chart-helper.d.ts +8 -1
- package/dist/common/chart-helper.ts.js +32 -9
- package/dist/common/util.d.ts +7 -0
- package/dist/common/util.ts.js +8 -0
- package/dist/components/render-aside/index.script.vue.js +1 -1
- package/dist/components/render-aside/index.vue.css +9 -9
- package/dist/components/render-aside/index.vue.js +1 -1
- package/dist/components/render-auto-height-textarea/index.vue.css +11 -11
- package/dist/components/render-auto-height-textarea/index.vue.js +1 -1
- package/dist/components/render-auto-refresh/index.vue.css +8 -8
- package/dist/components/render-auto-refresh/index.vue.js +1 -1
- package/dist/components/render-checkbox/index.vue.css +9 -9
- package/dist/components/render-checkbox/index.vue.js +1 -1
- package/dist/components/render-choose-tag/index.script.vue.js.js +1 -5
- package/dist/components/render-choose-tag/index.vue.css +7 -7
- package/dist/components/render-choose-tag/index.vue.js +1 -1
- package/dist/components/render-collapse/index.script.vue.js.js +1 -1
- package/dist/components/render-collapse/index.vue.css +2 -2
- package/dist/components/render-collapse/index.vue.js +1 -1
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.script.vue.js.js +3 -3
- package/dist/components/render-dataset/components/batch-review-dataset-data/index.vue.d.ts +1 -2
- package/dist/components/render-dataset/components/dataset-data-level/index.script.vue.js.js +20 -4
- package/dist/components/render-dataset/components/dataset-data-level/index.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/dataset-data-tool-icons/index.script.vue.js +1 -1
- package/dist/components/render-dataset/components/edit-dataset-data/index.script.vue.js.js +37 -12
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.css +3 -3
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.d.ts +2 -0
- package/dist/components/render-dataset/components/edit-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/index.vue.css +4 -4
- package/dist/components/render-dataset/components/operation-record/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.css +1 -1
- package/dist/components/render-dataset/components/operation-record/table/index.vue.js +1 -1
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.css +2 -2
- package/dist/components/render-dataset/components/operation-record/view-op-result/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset/index.script.vue.js.js +10 -4
- package/dist/components/render-dataset/components/plus-dataset/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.script.vue.js.js +137 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.css +10 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.d.ts +8 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/api.vue.js +5 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/category.script.vue.js.js +10 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/category.vue.d.ts +1 -0
- package/dist/components/render-dataset/components/plus-dataset-data/form/file.script.vue.js.js +4 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.script.vue.js.js +7 -5
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.css +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/footer.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.script.vue.js.js +27 -14
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.css +2 -2
- package/dist/components/render-dataset/components/plus-dataset-data/form/index.vue.js +1 -1
- package/dist/components/render-dataset/components/plus-dataset-data/form/manual.script.vue.js.js +9 -3
- package/dist/components/render-dataset/components/review-dataset-data/index.script.vue.js.js +2 -2
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.css +11 -11
- package/dist/components/render-dataset/components/review-dataset-data/index.vue.js +1 -1
- package/dist/components/render-dataset/components/search-dataset/index.script.vue.js.js +1 -3
- package/dist/components/render-dataset/components/source-type-icon/index.script.vue.js.js +3 -0
- package/dist/components/render-dataset/index.vue.css +1 -1
- package/dist/components/render-dataset/index.vue.js +1 -1
- package/dist/components/render-dataset-detail/components/header.script.vue.js.js +81 -3
- package/dist/components/render-dataset-detail/components/header.vue.d.ts +6 -1
- package/dist/components/render-dataset-detail/index.script.vue.js.js +18 -5
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.script.vue.js.js +8 -8
- package/dist/components/render-dataset-detail-origin-data/components/batch-operation/index.vue.d.ts +3 -4
- package/dist/components/render-dataset-detail-origin-data/components/table/index.script.vue.js +242 -86
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.d.ts +6 -4
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.js +0 -2
- package/dist/components/render-dataset-detail-origin-data/index.script.vue.js.js +37 -17
- package/dist/components/render-dataset-detail-origin-data/index.vue.css +3 -3
- package/dist/components/render-dataset-detail-origin-data/index.vue.d.ts +5 -1
- package/dist/components/render-dataset-detail-origin-data/index.vue.js +1 -1
- package/dist/components/render-dataset-list/components/main.script.vue.js.js +5 -0
- package/dist/components/render-dataset-list/components/main.vue.css +3 -3
- package/dist/components/render-dataset-list/components/main.vue.d.ts +1 -0
- package/dist/components/render-dataset-list/components/main.vue.js +1 -1
- package/dist/components/render-dataset-list/components/table.script.vue.js.js +37 -47
- package/dist/components/render-dataset-list/components/table.vue.d.ts +1 -0
- package/dist/components/render-dataset-list/index.script.vue.js.js +5 -0
- package/dist/components/render-dataset-list/index.vue.d.ts +1 -0
- package/dist/components/render-expand-collapse/index.vue.css +3 -3
- package/dist/components/render-expand-collapse/index.vue.js +1 -1
- package/dist/components/render-file-card/index.vue.css +11 -11
- package/dist/components/render-file-card/index.vue.js +1 -1
- package/dist/components/render-file-type-icon/index.vue.css +5 -5
- package/dist/components/render-file-type-icon/index.vue.js +1 -1
- package/dist/components/render-header/index.script.vue.js.js +3 -3
- package/dist/components/render-header/index.vue.css +5 -5
- package/dist/components/render-header/index.vue.d.ts +3 -3
- package/dist/components/render-header/index.vue.js +1 -1
- package/dist/components/render-markdown/mark-down-code.d.ts +2 -0
- package/dist/components/render-markdown/mark-down-code.ts.js +171 -0
- package/dist/components/render-markdown/mark-down-emoji.d.ts +2 -0
- package/dist/components/render-markdown/mark-down-emoji.ts.js +4 -0
- package/dist/components/render-markdown/mark-down.d.ts +49 -0
- package/dist/components/render-markdown/mark-down.postcss.css +153 -0
- package/dist/components/render-markdown/mark-down.ts.js +145 -0
- package/dist/components/render-router-tab/index.vue.css +3 -3
- package/dist/components/render-router-tab/index.vue.js +1 -1
- package/dist/components.d.ts +3 -1
- package/dist/components.ts.js +3 -1
- package/dist/css/fonts/iconcool.eot +0 -0
- package/dist/css/fonts/iconcool.svg +3 -0
- package/dist/css/fonts/iconcool.ttf +0 -0
- package/dist/css/fonts/iconcool.woff +0 -0
- package/dist/css/iconcool.js +2 -2
- package/dist/css/style.css +3 -0
- package/dist/hooks/use-chat.d.ts +38 -3
- package/dist/hooks/use-chat.ts.js +16 -3
- package/dist/hooks/use-dataset-http.d.ts +5 -1
- package/dist/hooks/use-dataset-http.ts.js +28 -1
- package/dist/hooks/use-session-http.d.ts +8 -1
- package/dist/hooks/use-session-http.ts.js +51 -15
- package/dist/http/fetch/index.d.ts +3 -0
- package/dist/http/fetch/index.ts.js +23 -5
- package/dist/http/helper/agent.ts.js +27 -3
- package/dist/http/helper/dataset.d.ts +7 -1
- package/dist/http/helper/dataset.ts.js +17 -0
- package/dist/http/helper/knowledge.ts.js +7 -2
- package/dist/http/helper/permission.ts.js +4 -1
- package/dist/http/helper/session.ts.js +5 -2
- package/dist/http/helper/tool.ts.js +4 -0
- package/dist/types/agent.d.ts +53 -0
- package/dist/types/agent.ts.js +1 -0
- package/dist/types/common.d.ts +5 -0
- package/dist/types/common.ts.js +1 -0
- package/dist/types/dataset.d.ts +23 -0
- package/dist/types/enum.d.ts +22 -2
- package/dist/types/enum.ts.js +23 -0
- package/dist/types/knowledge.d.ts +5 -1
- package/dist/types/permission.d.ts +6 -0
- package/dist/types/session.d.ts +5 -2
- package/dist/types/tool.d.ts +7 -3
- package/dist/types.d.ts +2 -0
- package/dist/types.ts.js +2 -0
- package/package.json +6 -4
- package/dist/components/render-dataset-detail-origin-data/components/table/index.vue.css +0 -10
- package/dist/hooks/use-form-rule.ts.js +0 -101
package/dist/css/iconcool.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
!function() {
|
|
2
|
-
const svgCode = '<svg xmlns="http://www.w3.org/2000/svg" data-name="ai-ui-sdk" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="ai-ui-sdk-plus-circle" viewBox="0 0 1024 1024"><path d="M512 128c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.3 865.9 661.6c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886.1 362.5 866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3C409.8 138.1 460.1 128 512 128m0-64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z"/><path d="M704 480H544V320h-64v160H320v64h160v160h64V544h160z"/></g></symbol><symbol id="ai-ui-sdk-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="ai-ui-sdk-delete" viewBox="0 0 64 64"><path fill="#737987" d="M58 14H42v-4c0-2.2-1.8-4-4-4H26c-2.2 0-4 1.8-4 4v4H6v4h7v36c0 2.2 1.8 4 4 4h30c2.2 0 4-1.8 4-4V18h7v-4zm-31-4h10c.6 0 1 .4 1 1v3H26v-3c0-.6.4-1 1-1zm19 44H18c-.6 0-1-.4-1-1V18h30v35c0 .6-.4 1-1 1z"/><path fill="#737987" d="M36 25h4v22h-4zM24 25h4v22h-4z"/></symbol><symbol id="ai-ui-sdk-info-line" viewBox="0 0 64 64"><path d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 52C18.7 56 8 45.3 8 32S18.7 8 32 8s24 10.7 24 24-10.7 24-24 24z"/><path d="M30.9 25.2c-1.8.4-3.5 1.3-4.8 2.6-1.5 1.4.1 2.8 1 1.7.6-.8 1.5-1.4 2.5-1.8.7-.1 1.1.1 1.2.6.1.9 0 1.7-.3 2.6-.3 1.2-.9 3.2-1.6 5.9-1.4 4.8-2.1 7.8-1.9 8.8.2 1.1.8 2 1.8 2.6 1.1.5 2.4.6 3.6.3 1.9-.4 3.6-1.4 5-2.8 1.6-1.6-.2-2.7-1.1-1.8-.6.8-1.5 1.4-2.5 1.6-.9.2-1.4-.2-1.6-1-.1-.9.1-1.8.4-2.6 2.5-8.5 3.6-13.3 3.3-14.5-.2-.9-.8-1.7-1.6-2.1-1-.4-2.3-.4-3.4-.1z"/><circle cx="35" cy="19" r="3"/></g></symbol><symbol id="ai-ui-sdk-angle-up" viewBox="0 0 32 32"><path fill="#63656e" d="M16 11.5l7 7-1.5 1.5-5.5-5.5-5.5 5.5L9 18.5l7-7z"/></symbol><symbol id="ai-ui-sdk-copy" viewBox="0 0 64 64"><path d="M54 8H18c-1.1 0-2 .9-2 2v6h-6c-1.1 0-2 .9-2 2v36c0 1.1.9 2 2 2h36c1.1 0 2-.9 2-2v-6h6c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM44 44v8H12V20h32v24zm8 0h-4V18c0-1.1-.9-2-2-2H20v-4h32v32z"/><path d="M17.2 26.2h21v4h-21zM17 34h21v4H17zM17 42h21v4H17z"/></symbol><symbol id="ai-ui-sdk-folder-fill" viewBox="0 0 64 64"><path d="M16.93 20.47H53.5v-3.15a3.24 3.24 0 00-3.25-3.21h-19.5v-2.9A3.24 3.24 0 0027.5 8H11.25A3.24 3.24 0 008 11.21v37.58l5.68-25.12a3.23 3.23 0 013.25-3.2zm37.38 28.32A3.23 3.23 0 0151.06 52H10.44l5.68-25.92a3.22 3.22 0 013.25-3.2h37.38a3.22 3.22 0 013.25 3.2z"/></symbol><symbol id="ai-ui-sdk-un-full-screen" viewBox="0 0 64 64"><path d="M26 56h-4V42H8v-4h16c1.1 0 2 .9 2 2v16zM42 56h-4V40c0-1.1.9-2 2-2h16v4H42v14zM24 26H8v-4h14V8h4v16c0 1.1-.9 2-2 2zM56 26H40c-1.1 0-2-.9-2-2V8h4v14h14v4z"/></symbol><symbol id="ai-ui-sdk-full-screen" viewBox="0 0 64 64"><path d="M56 25h-4V12H39V8h15c1.1 0 2 .9 2 2v15zM12 25H8V10c0-1.1.9-2 2-2h15v4H12v13zM25 56H10c-1.1 0-2-.9-2-2V39h4v13h13v4zM54 56H39v-4h13V39h4v15c0 1.1-.9 2-2 2z"/></symbol><symbol id="ai-ui-sdk-sync-failed" viewBox="0 0 1024 1024"><path fill="#ffe6e6" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#ea3636" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-pending" viewBox="0 0 1024 1024"><path fill="#3a84ff" d="M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0l-25.6-25.6-19.2-19.2c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 19.2 19.2z" opacity=".1"/><path fill="#3a84ff" d="M192 448c38.4 0 64 25.6 64 64s-25.6 64-64 64h-64c-38.4 0-64-25.6-64-64s25.6-64 64-64h64z" opacity=".15"/><path fill="#3a84ff" d="M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6 25.6-25.6z" opacity=".3"/><path fill="#3a84ff" d="M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v64c0 38.4-25.6 64-64 64s-64-25.6-64-64v-64z" opacity=".45"/><path fill="#3a84ff" d="M825.6 825.6c-25.6 25.6-64 25.6-89.6 0L710.4 800l-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6c25.6 25.6 25.6 70.4 0 89.6z" opacity=".6"/><path fill="#3a84ff" d="M896 448l-32 128h-32c-38.4 0-64-25.6-64-64s25.6-64 64-64h64zm64 64c0 38.4-25.6 64-64 64h-32l32-128c38.4 0 64 25.6 64 64z" opacity=".75"/><path fill="#3a84ff" d="M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6L800 313.6l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6" opacity=".9"/><path fill="#3a84ff" d="M448 160l128 32c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32zm64-96c38.4 0 64 25.6 64 64v32H448v-32c0-38.4 25.6-64 64-64zm-64 96h128v32H448v-32z"/></g></symbol><symbol id="ai-ui-sdk-sync-success" viewBox="0 0 1024 1024"><path fill="#e5f6ea" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#3fc06d" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-default" viewBox="0 0 1024 1024"><path fill="#f0f1f5" d="M768 512c0 141.4-114.6 256-256 256S256 653.4 256 512s114.6-256 256-256 256 114.6 256 256z"/><path fill="#c4c6cc" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-waiting-01" viewBox="0 0 1024 1024"><path fill="#ffe8c3" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#ff9c01" d="M512 768c-141.2 0-256-114.8-256-256s114.8-256 256-256 256 114.8 256 256-114.8 256-256 256zm0-448c-105.9 0-192 86.1-192 192s86.1 192 192 192 192-86.1 192-192-86.1-192-192-192z"/></symbol><symbol id="ai-ui-sdk-wenben" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-pdf" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="ai-ui-sdk-doc-2" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="ai-ui-sdk-excel" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="ai-ui-sdk-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="ai-ui-sdk-arrow-left" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M144 512l70.4 70.4 214.4 214.4 70.4-72L336 561.6h544v-99.2H336l163.2-163.2-70.4-72-214.4 214.4z" clip-rule="evenodd"/></symbol><symbol id="ai-ui-sdk-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M924.55 113.365c0-.09-.088-.09-.088-.18a30.217 30.217 0 00-7.78-9.684 31.929 31.929 0 00-10.606-5.918c-.089 0-.177-.09-.266-.09-1.502-.537-3.093-.806-4.685-1.075-.442-.09-.884-.27-1.414-.27-1.503-.179-2.917-.179-4.42-.09-.618 0-1.149-.089-1.768 0-4.242.27-8.485 1.525-12.375 3.498L113.792 485.577c-7.514 3.677-13.26 10.312-15.911 18.382-.796 2.242-1.15 4.663-1.415 6.994-.795 4.753-.618 9.685.884 14.347 2.475 8.16 8.044 14.885 15.558 18.741l194.734 103.836c4.685 2.51 9.812 3.766 15.115 3.766 11.757.09 22.541-6.367 28.287-16.768 8.397-15.513 2.475-34.791-13.083-43.13l-142.316-75.86 572.358-288.014L418.93 634.516c-.265.27-.354.628-.619.897-8.662 5.739-14.32 15.423-14.32 26.542v234.123a32.598 32.598 0 009.547 22.686c6.01 6.008 14.143 9.236 22.54 9.146v.09c17.68 0 32-14.257 32-31.832V675.405l381.07-444.127-79.202 585.802-200.921-97.917c-15.823-7.712-34.828-1.255-42.872 14.526-3.712 7.622-4.243 16.41-1.503 24.48s8.575 14.615 16.177 18.202l238.754 116.48c4.42 2.151 9.193 3.227 14.144 3.227.176 0 .353-.09.53-.09.53 0 1.15.18 1.68.18 15.91.09 29.435-11.657 31.733-27.618l99.003-731.782c2.21-7.532 1.767-15.871-2.122-23.403z"/></symbol><symbol id="ai-ui-sdk-yinyong-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm0 63.999c-212.077 0-384.001 171.924-384.001 384.001-.382 155.607 93.181 296.061 236.922 355.66C508.661 927.26 674.161 894.223 784 784a384 384 0 000-544 384.006 384.006 0 00-272-112.001zM492.622 336v62.976h78.956c98.956 0 148.422 43.35 148.422 131.093C720 613.675 671.578 656 576.844 656H375.777v-44.395H573.69c70.511 0 105.267-27.861 105.267-85.675 0-55.743-33.69-83.605-101.067-83.605h-85.267v62.955L320 420.65 492.622 336z"/></symbol><symbol id="ai-ui-sdk-dongzuo-xiazai" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm352-512v452.8l104-102.4 44.8 44.8-136 136L512 704 331.2 523.2l44.8-44.8 104 102.4V128h64z"/></symbol><symbol id="ai-ui-sdk-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="ai-ui-sdk-baocun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M864 96c35.346 0 64 28.654 64 64v704c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V160c0-35.346 28.654-64 64-64h704zm-608 64h-96v704h704V160h-96v224c0 35.346-28.654 64-64 64H320c-35.346 0-64-28.654-64-64V160zm448 0H320v224h384V160zm-96 64c17.673 0 32 14.327 32 32v32c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32v-32c0-17.673 14.327-32 32-32z"/></symbol><symbol id="ai-ui-sdk-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-ppt-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-dongzuo-shangchuan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm320-512l44.8 44.8 136 136-44.8 44.8-104-102.4V704h-64V251.2L376 353.6l-44.8-44.8L512 128z"/></symbol><symbol id="ai-ui-sdk-wangye" viewBox="0 0 1024 1024"><path d="M287.802 485.456h197.767V309.4H329.1a504.602 504.602 0 00-41.297 176.055zm197.767-374.937c-52.242 39.631-96.242 89.163-129.51 145.794h129.51V110.519zm52.862 374.937h197.04A506.134 506.134 0 00694.173 309.4H538.497v176.055h-.066zm-209 230.072h156.138V538.544H287.802c3.171 62.114 17.576 121.838 41.628 176.984zm583.192 0c27.091-53.686 43.677-113.543 47.31-176.984H788.268a560.422 560.422 0 01-37.135 176.984h161.491zM751.462 309.4c21.475 55.478 34.03 114.738 36.87 176.055H960A450.637 450.637 0 00913.086 309.4H751.462zM538.43 111.05v145.196h128.717c-33.09-56.349-76.813-105.67-128.717-145.196zm189.111 145.263H882.03C808.627 149.146 692.716 79.04 564.07 64c68.492 50.626 124.433 116.436 163.473 192.313zM485.57 913.614V768.616H356.522c33.196 56.316 77.034 105.573 129.047 144.998zM271.811 309.401h-160.83a449.438 449.438 0 00-46.915 176.055H234.94A561.822 561.822 0 01271.811 309.4zm24.316 459.215H142.631c73.224 106.308 188.366 175.931 316.177 191.185-68.057-50.411-123.707-115.813-162.68-191.185zm431.019 0C688.168 844.08 632.467 909.554 564.333 960c128.183-15.038 243.717-84.768 317.102-191.384h-154.29zm-60.394 0H538.43v144.4c51.662-39.354 95.239-88.392 128.32-144.4zM234.94 538.544H64c3.7 63.44 20.22 123.298 47.377 176.984h160.699a558.557 558.557 0 01-37.136-176.984zm500.531 0h-197.04v176.984h155.412a505.266 505.266 0 0041.628-176.984zm-439.74-282.231c38.988-75.778 94.835-141.516 163.21-192.114-128.266 15.233-243.774 85.24-316.97 192.114h153.76z"/></symbol><symbol id="ai-ui-sdk-zhishiku" viewBox="0 0 1024 1024"><path d="M320.986 203.315H191.622c-17.248 0-31.622 14.503-31.622 31.905v639.542c0 17.403 14.374 31.905 31.622 31.905h129.364c17.249 0 31.623-14.502 31.623-31.905V235.22c0-17.402-14.374-31.905-31.623-31.905zm-35.934 130.52h-57.495c-15.811 0-28.748-13.053-28.748-29.005 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zM578.277 96H448.913c-17.249 0-31.622 14.502-31.622 31.905v746.857c0 17.403 14.373 31.905 31.622 31.905h129.364c17.248 0 31.622-14.502 31.622-31.905V127.905C611.337 110.502 596.963 96 578.277 96zM543.78 227.969h-57.495c-15.811 0-28.748-13.052-28.748-29.004 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zm383.78 613.438l-120.74-627.94c-4.312-15.952-17.249-26.104-33.06-26.104h-5.75l-126.488 24.654c-17.249 2.9-28.748 20.303-25.873 37.705l122.177 629.39c2.875 15.953 15.811 26.104 31.622 26.104h5.75l126.489-24.653c17.248-4.35 28.748-21.753 25.873-39.156zM762.26 312.081l-57.495 11.602h-5.75c-12.936 0-25.872-10.152-28.747-23.204-2.875-15.952 7.187-31.904 22.998-34.805l57.495-11.601c15.811-2.9 31.623 7.25 34.497 23.203 2.875 15.952-7.187 31.905-22.998 34.805z"/></symbol><symbol id="ai-ui-sdk-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 01-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194.09 7.757.264A280.989 280.989 0 00793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z"/></symbol><symbol id="ai-ui-sdk-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="ai-ui-sdk-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="ai-ui-sdk-gengduo-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.55 319.995c35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448m-1.102 112.004c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448m0 240c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448"/></symbol><symbol id="ai-ui-sdk-sync-passed" viewBox="0 0 1024 1024"><path fill="#cddffe" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#3a84ff" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol><symbol id="ai-ui-sdk-sync-failed-2-2" viewBox="0 0 1024 1024"><path fill="#f1e4f4" d="M704 512c0 106-86 192-192 192s-192-86-192-192 86-192 192-192 192 86 192 192z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#cb36ea" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol></svg>';
|
|
2
|
+
var svgCode = '<svg xmlns="http://www.w3.org/2000/svg" data-name="ai-ui-sdk" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="ai-ui-sdk-plus-circle" viewBox="0 0 1024 1024"><path d="M512 128c51.9 0 102.2 10.1 149.5 30.2 45.7 19.3 86.8 47 122.1 82.3s63 76.4 82.3 122.1c20 47.3 30.2 97.6 30.2 149.5S886 614.3 865.9 661.6c-19.3 45.7-47 86.8-82.3 122.1s-76.4 63-122.1 82.3c-47.3 20-97.6 30.2-149.5 30.2S409.8 886.1 362.5 866c-45.7-19.3-86.8-47-122.1-82.3s-63-76.4-82.3-122.1c-20-47.3-30.2-97.6-30.2-149.5s10.1-102.2 30.2-149.5c19.3-45.7 47-86.8 82.3-122.1s76.4-63 122.1-82.3C409.8 138.1 460.1 128 512 128m0-64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64z"/><path d="M704 480H544V320h-64v160H320v64h160v160h64V544h160z"/></g></symbol><symbol id="ai-ui-sdk-warning-circle-fill" viewBox="0 0 1024 1024"><path fill="#737987" d="M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 640h-64v-64h64v64zm0-128h-64V320h64v256z"/></symbol><symbol id="ai-ui-sdk-delete" viewBox="0 0 64 64"><path fill="#737987" d="M58 14H42v-4c0-2.2-1.8-4-4-4H26c-2.2 0-4 1.8-4 4v4H6v4h7v36c0 2.2 1.8 4 4 4h30c2.2 0 4-1.8 4-4V18h7v-4zm-31-4h10c.6 0 1 .4 1 1v3H26v-3c0-.6.4-1 1-1zm19 44H18c-.6 0-1-.4-1-1V18h30v35c0 .6-.4 1-1 1z"/><path fill="#737987" d="M36 25h4v22h-4zM24 25h4v22h-4z"/></symbol><symbol id="ai-ui-sdk-refresh" viewBox="0 0 64 64"><path d="M54.3 23.1C55.4 25.9 56 29 56 32c0 13.3-10.8 24-24 24-5.7 0-11.2-2-15.5-5.7h4.8v-4H10v11.2h4v-4.1c11.8 9.9 29.5 8.4 39.4-3.4 6.8-8.1 8.4-19.2 4.3-28.9l-3.4 2zM9.7 40.9C8.6 38.1 8 35 8 32 8 18.7 18.8 8 32 8c5.7 0 11.2 2 15.5 5.7h-4.8v4H54V6.5h-4v4.1C38.2.6 20.5 2.2 10.6 14c-6.8 8.1-8.4 19.2-4.3 28.9l3.4-2z"/></g></symbol><symbol id="ai-ui-sdk-info-line" viewBox="0 0 64 64"><path d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 52C18.7 56 8 45.3 8 32S18.7 8 32 8s24 10.7 24 24-10.7 24-24 24z"/><path d="M30.9 25.2c-1.8.4-3.5 1.3-4.8 2.6-1.5 1.4.1 2.8 1 1.7.6-.8 1.5-1.4 2.5-1.8.7-.1 1.1.1 1.2.6.1.9 0 1.7-.3 2.6-.3 1.2-.9 3.2-1.6 5.9-1.4 4.8-2.1 7.8-1.9 8.8.2 1.1.8 2 1.8 2.6 1.1.5 2.4.6 3.6.3 1.9-.4 3.6-1.4 5-2.8 1.6-1.6-.2-2.7-1.1-1.8-.6.8-1.5 1.4-2.5 1.6-.9.2-1.4-.2-1.6-1-.1-.9.1-1.8.4-2.6 2.5-8.5 3.6-13.3 3.3-14.5-.2-.9-.8-1.7-1.6-2.1-1-.4-2.3-.4-3.4-.1z"/><circle cx="35" cy="19" r="3"/></g></symbol><symbol id="ai-ui-sdk-angle-up" viewBox="0 0 32 32"><path fill="#63656e" d="M16 11.5l7 7-1.5 1.5-5.5-5.5-5.5 5.5L9 18.5l7-7z"/></symbol><symbol id="ai-ui-sdk-copy" viewBox="0 0 64 64"><path d="M54 8H18c-1.1 0-2 .9-2 2v6h-6c-1.1 0-2 .9-2 2v36c0 1.1.9 2 2 2h36c1.1 0 2-.9 2-2v-6h6c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM44 44v8H12V20h32v24zm8 0h-4V18c0-1.1-.9-2-2-2H20v-4h32v32z"/><path d="M17.2 26.2h21v4h-21zM17 34h21v4H17zM17 42h21v4H17z"/></symbol><symbol id="ai-ui-sdk-folder-fill" viewBox="0 0 64 64"><path d="M16.93 20.47H53.5v-3.15a3.24 3.24 0 00-3.25-3.21h-19.5v-2.9A3.24 3.24 0 0027.5 8H11.25A3.24 3.24 0 008 11.21v37.58l5.68-25.12a3.23 3.23 0 013.25-3.2zm37.38 28.32A3.23 3.23 0 0151.06 52H10.44l5.68-25.92a3.22 3.22 0 013.25-3.2h37.38a3.22 3.22 0 013.25 3.2z"/></symbol><symbol id="ai-ui-sdk-auto-refresh-line" viewBox="0 0 64 64"><path d="M54.3 23.1l3.4-2c4.1 9.7 2.5 20.8-4.3 28.9-9.8 11.7-27.2 13.3-39 3.7l-.4-.3v4.1h-4V46.3h11.3v4h-4.8C20.8 54 26.3 56 32 56c13.2 0 24-10.7 24-24 0-2.8-.5-5.7-1.5-8.4l-.2-.5 3.4-2-3.4 2zM49.6 10.3l.4.3V6.5h4v11.2H42.7v-4h4.8C43.2 10 37.7 8 32 8 18.8 8 8 18.7 8 32c0 2.8.5 5.7 1.5 8.4l.2.5-3.4 2C2.2 33.2 3.8 22.1 10.6 14c9.8-11.7 27.2-13.4 39-3.7z"/><path d="M43.1 43.3h-5.3l-1.7-5.2h-8.2l-1.7 5.2H21l8.3-22.7H35l8.1 22.7zM35 34.4l-2.6-7.9c-.2-.5-.3-1.2-.4-2h-.1c-.1.7-.2 1.3-.4 1.9l-2.6 7.9H35z"/></symbol><symbol id="ai-ui-sdk-un-full-screen" viewBox="0 0 64 64"><path d="M26 56h-4V42H8v-4h16c1.1 0 2 .9 2 2v16zM42 56h-4V40c0-1.1.9-2 2-2h16v4H42v14zM24 26H8v-4h14V8h4v16c0 1.1-.9 2-2 2zM56 26H40c-1.1 0-2-.9-2-2V8h4v14h14v4z"/></symbol><symbol id="ai-ui-sdk-full-screen" viewBox="0 0 64 64"><path d="M56 25h-4V12H39V8h15c1.1 0 2 .9 2 2v15zM12 25H8V10c0-1.1.9-2 2-2h15v4H12v13zM25 56H10c-1.1 0-2-.9-2-2V39h4v13h13v4zM54 56H39v-4h13V39h4v15c0 1.1-.9 2-2 2z"/></symbol><symbol id="ai-ui-sdk-sync-failed" viewBox="0 0 1024 1024"><path fill="#ffe6e6" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#ea3636" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-pending" viewBox="0 0 1024 1024"><path d="M332.8 243.2c25.6 25.6 25.6 64 0 89.6-25.6 25.6-64 25.6-89.6 0l-25.6-25.6-19.2-19.2c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 19.2 19.2z" opacity=".1"/><path d="M192 448c38.4 0 64 25.6 64 64s-25.6 64-64 64h-64c-38.4 0-64-25.6-64-64s25.6-64 64-64h64z" opacity=".15"/><path d="M243.2 691.2c25.6-25.6 64-25.6 89.6 0 25.6 25.6 25.6 64 0 89.6l-25.6 25.6-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6l25.6-25.6 25.6-25.6z" opacity=".3"/><path d="M448 832c0-38.4 25.6-64 64-64s64 25.6 64 64v64c0 38.4-25.6 64-64 64s-64-25.6-64-64v-64z" opacity=".45"/><path d="M825.6 825.6c-25.6 25.6-64 25.6-89.6 0L710.4 800l-25.6-25.6c-25.6-25.6-25.6-64 0-89.6s64-25.6 89.6 0l25.6 25.6 25.6 25.6c25.6 25.6 25.6 70.4 0 89.6z" opacity=".6"/><path d="M896 448l-32 128h-32c-38.4 0-64-25.6-64-64s25.6-64 64-64h64zm64 64c0 38.4-25.6 64-64 64h-32l32-128c38.4 0 64 25.6 64 64z" opacity=".75"/><path d="M742.4 192c25.6-19.2 64-19.2 83.2 6.4 25.6 25.6 25.6 64 0 89.6L800 313.6l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0s-25.6-64 0-89.6" opacity=".9"/><path d="M448 160l128 32c0 38.4-25.6 64-64 64s-64-25.6-64-64v-32zm64-96c38.4 0 64 25.6 64 64v32H448v-32c0-38.4 25.6-64 64-64zm-64 96h128v32H448v-32z"/></g></symbol><symbol id="ai-ui-sdk-sync-success" viewBox="0 0 1024 1024"><path fill="#e5f6ea" d="M768 512a256 256 0 01-256 256 256 256 0 01-256-256 256 256 0 01512 0z"/><path fill="#3fc06d" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-default" viewBox="0 0 1024 1024"><path fill="#f0f1f5" d="M768 512c0 141.4-114.6 256-256 256S256 653.4 256 512s114.6-256 256-256 256 114.6 256 256z"/><path fill="#c4c6cc" d="M512 320c108.8 0 192 83.2 192 192s-83.2 192-192 192-192-83.2-192-192 83.2-192 192-192m0-64c-140.8 0-256 115.2-256 256s115.2 256 256 256 256-115.2 256-256-115.2-256-256-256z"/></symbol><symbol id="ai-ui-sdk-sync-waiting-01" viewBox="0 0 1024 1024"><path fill="#ffe8c3" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#ff9c01" d="M512 768c-141.2 0-256-114.8-256-256s114.8-256 256-256 256 114.8 256 256-114.8 256-256 256zm0-448c-105.9 0-192 86.1-192 192s86.1 192 192 192 192-86.1 192-192-86.1-192-192-192z"/></symbol><symbol id="ai-ui-sdk-wenben" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-pdf" viewBox="0 0 1024 1024"><path fill="#EA3636" fill-rule="evenodd" d="M854.6 288.7c6 6 9.4 14.1 9.4 22.6V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.7c8.5 0 16.7 3.4 22.7 9.4l215.2 215.3zM790.2 326L602 137.8V326h188.2zM633.217 637.256c-15.174-.489-31.314.67-49.65 2.964-24.298-14.987-40.654-35.582-52.274-65.827.28-1.152.86-3.538 1.063-4.38.474-1.958.867-3.594 1.243-5.185 4.293-18.13 6.615-31.358 7.3-44.695.518-10.074-.04-19.368-1.827-27.976-3.298-18.584-16.454-29.453-33.021-30.126-15.446-.627-29.649 7.993-33.281 21.373-5.913 21.612-2.45 50.07 10.08 98.582-15.964 38.056-37.052 82.661-51.203 107.539-18.885 9.74-33.604 18.605-45.953 28.427-16.303 12.966-26.48 26.29-29.286 40.306-1.355 6.48.692 14.966 5.36 21.912 5.296 7.879 13.282 12.991 22.855 13.735 24.152 1.877 53.83-23.024 86.59-79.258 3.295-1.09 6.78-2.257 11.026-3.69 2.323-.783 10.464-3.538 11.91-4.026 7.521-2.54 12.98-4.36 18.376-6.116 23.396-7.612 41.096-12.429 57.21-15.163 27.973 14.973 60.316 24.796 82.098 24.796 17.979 0 30.126-9.319 34.515-23.985 3.857-12.886.794-27.824-7.473-36.084-8.56-8.41-24.3-12.434-45.658-13.123zm-247.985 128.42v-.36l.126-.338c1.275-3.421 3.157-7.008 5.6-10.758 4.284-6.576 10.173-13.5 17.472-20.865 3.92-3.955 8.002-7.8 12.79-12.12 1.073-.969 7.91-7.059 9.189-8.25l11.176-10.407-8.12 12.934c-12.326 19.638-23.46 33.78-33.013 43.004-3.507 3.387-6.6 5.9-9.091 7.505-1.027.662-1.916 1.144-2.613 1.424-.409.163-.771.268-1.13.302-.38.045-.765-.01-1.117-.16a2.068 2.068 0 01-1.269-1.911zm125.934-218.269l-2.26 4.007-1.39-4.385c-3.114-9.829-5.387-24.641-6.016-37.997-.716-15.197.49-24.323 5.286-24.323 6.74 0 9.831 10.808 10.076 27.053.216 14.28-2.03 29.142-5.696 35.645zm-5.81 58.464l1.534-4.05 2.088 3.795c11.69 21.245 26.858 38.967 43.538 51.315l3.595 2.662-4.38.904c-16.328 3.372-31.544 8.457-52.34 16.842 2.174-.876-21.623 8.863-27.638 11.169l-5.252 2.013 2.802-4.877c12.35-21.496 23.758-47.326 36.052-79.773h.001zm157.626 76.261c-7.864 3.104-24.777.329-54.569-12.387l-7.561-3.227 8.199-.607c23.295-1.724 39.807-.44 49.422 3.08 4.09 1.498 6.824 3.388 8.037 5.553 1.31 2.336.71 4.81-1.362 6.31-.448.427-1.155.88-2.166 1.278z"/></symbol><symbol id="ai-ui-sdk-doc-2" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M675.35 62.103a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12l-536.406-76.587c-21.028-2.995-36.65-21-36.65-42.24V175.932c0-21.24 15.622-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zm220.693 76.837c23.564 0 42.666 19.102 42.666 42.667v682.666c0 23.564-19.102 42.667-42.666 42.667H725.376v-85.333h128V224.273h-128V138.94h170.667zM298.709 352.273h-85.333v341.334h85.333l85.334-85.334 85.333 85.334h85.333V352.273h-85.333v212.864l-85.333-84.864-84.907 85.334-.427-213.334z"/></symbol><symbol id="ai-ui-sdk-excel" viewBox="0 0 1024 1024"><path fill="#2DCB56" fill-rule="evenodd" d="M675.307 51.163a21.336 21.336 0 017.36 16.122v889.43a21.33 21.33 0 01-24.32 21.12L121.94 901.248c-21.027-2.995-36.65-21-36.65-42.24V164.992c0-21.24 15.623-39.245 36.65-42.24l536.363-76.587a21.333 21.333 0 0117.003 4.998zM896 128c23.564 0 42.667 19.103 42.667 42.667v682.666C938.667 876.897 919.564 896 896 896H725.333v-85.333h128V213.333h-128V128H896zM315.733 341.333h-102.4L332.8 512 213.333 682.667h102.4L384 585.13l68.267 97.536h102.4L435.2 512l119.467-170.667h-102.4L384 438.87l-68.267-97.536z"/></symbol><symbol id="ai-ui-sdk-links" viewBox="0 0 1024 1024"><path d="M263.04 760.96a148.48 148.48 0 01-1.92-224l92.48-92.48-45.12-45.76L216 491.2a212.8 212.8 0 001.92 314.88A212.8 212.8 0 00532.8 808l92.48-92.48L579.84 672l-92.48 92.48a148.48 148.48 0 01-224.32-3.52zM491.2 216l-92.48 92.48 45.44 45.12 92.48-92.48a148.48 148.48 0 01224 1.92 148.48 148.48 0 011.92 224L672 579.84l45.12 45.44 92.48-92.48a212.8 212.8 0 00-1.92-314.88A212.8 212.8 0 00491.2 216z"/><path d="M398.786 579.888l181.019-181.02 45.255 45.255-181.02 181.02-45.254-45.255z"/></symbol><symbol id="ai-ui-sdk-arrow-left" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M144 512l70.4 70.4 214.4 214.4 70.4-72L336 561.6h544v-99.2H336l163.2-163.2-70.4-72-214.4 214.4z" clip-rule="evenodd"/></symbol><symbol id="ai-ui-sdk-apijiedian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M451.372 703.988h-84.794l-33.707-87.22H178.554l-31.868 87.22H64L214.37 320h82.428l154.574 383.988zm-143.518-151.92L254.66 409.572l-52.142 142.496h105.337zm184.861 151.92V320h125.083c47.398 0 78.298 1.926 92.7 5.767 22.124 5.766 40.645 18.287 55.562 37.586 14.917 19.3 22.381 44.22 22.381 74.784 0 23.579-4.302 43.39-12.907 59.459-8.604 16.068-19.525 28.687-32.787 37.855-13.25 9.168-26.733 15.24-40.424 18.202-18.606 3.67-45.56 5.498-80.847 5.498h-50.83V704h-77.943l.012-.012zm77.943-319.031v108.969h42.654c30.729 0 51.26-2.012 61.617-6.023 10.357-4.01 18.483-10.302 24.354-18.86 5.884-8.559 8.825-18.507 8.825-29.858 0-13.971-4.13-25.492-12.38-34.575-8.248-9.083-18.691-14.752-31.34-17.02-9.304-1.743-28.008-2.62-56.089-2.62h-37.654l.013-.013zm279.4 319.03V320H928v383.988h-77.943z"/></symbol><symbol id="ai-ui-sdk-fasong" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M924.55 113.365c0-.09-.088-.09-.088-.18a30.217 30.217 0 00-7.78-9.684 31.929 31.929 0 00-10.606-5.918c-.089 0-.177-.09-.266-.09-1.502-.537-3.093-.806-4.685-1.075-.442-.09-.884-.27-1.414-.27-1.503-.179-2.917-.179-4.42-.09-.618 0-1.149-.089-1.768 0-4.242.27-8.485 1.525-12.375 3.498L113.792 485.577c-7.514 3.677-13.26 10.312-15.911 18.382-.796 2.242-1.15 4.663-1.415 6.994-.795 4.753-.618 9.685.884 14.347 2.475 8.16 8.044 14.885 15.558 18.741l194.734 103.836c4.685 2.51 9.812 3.766 15.115 3.766 11.757.09 22.541-6.367 28.287-16.768 8.397-15.513 2.475-34.791-13.083-43.13l-142.316-75.86 572.358-288.014L418.93 634.516c-.265.27-.354.628-.619.897-8.662 5.739-14.32 15.423-14.32 26.542v234.123a32.598 32.598 0 009.547 22.686c6.01 6.008 14.143 9.236 22.54 9.146v.09c17.68 0 32-14.257 32-31.832V675.405l381.07-444.127-79.202 585.802-200.921-97.917c-15.823-7.712-34.828-1.255-42.872 14.526-3.712 7.622-4.243 16.41-1.503 24.48s8.575 14.615 16.177 18.202l238.754 116.48c4.42 2.151 9.193 3.227 14.144 3.227.176 0 .353-.09.53-.09.53 0 1.15.18 1.68.18 15.91.09 29.435-11.657 31.733-27.618l99.003-731.782c2.21-7.532 1.767-15.871-2.122-23.403z"/></symbol><symbol id="ai-ui-sdk-yinyong-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 64c247.424 0 448 200.576 448 448S759.424 960 512 960 64 759.424 64 512 264.576 64 512 64zm0 63.999c-212.077 0-384.001 171.924-384.001 384.001-.382 155.607 93.181 296.061 236.922 355.66C508.661 927.26 674.161 894.223 784 784a384 384 0 000-544 384.006 384.006 0 00-272-112.001zM492.622 336v62.976h78.956c98.956 0 148.422 43.35 148.422 131.093C720 613.675 671.578 656 576.844 656H375.777v-44.395H573.69c70.511 0 105.267-27.861 105.267-85.675 0-55.743-33.69-83.605-101.067-83.605h-85.267v62.955L320 420.65 492.622 336z"/></symbol><symbol id="ai-ui-sdk-dongzuo-xiazai" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm352-512v452.8l104-102.4 44.8 44.8-136 136L512 704 331.2 523.2l44.8-44.8 104 102.4V128h64z"/></symbol><symbol id="ai-ui-sdk-quanquan" viewBox="0 0 1024 1024"><path fill="#3A84FF" d="M512 64.129c-9.343-.661-18.345 3.338-27.005 11.998-2.666 2.667-4.831 6.165-6.495 10.495-1.664 4.33-2.496 7.498-2.496 9.503v4c0 10.004 2.997 18.003 8.991 23.997 3.328 4.01 7.327 6.847 11.999 8.511 4.671 1.664 8.34 2.496 11.006 2.496h4c68.003 0 130.993 16.83 188.97 50.49 57.978 33.66 103.807 79.49 137.489 137.488 33.681 57.999 50.511 121.16 50.49 189.483-.021 68.322-16.851 131.313-50.49 188.97-33.64 57.657-79.469 103.316-137.489 136.976-58.02 33.66-121.18 50.49-189.482 50.49-68.301 0-131.292-16.83-188.97-50.49-57.68-33.66-103.338-79.319-136.977-136.976-33.639-57.657-50.469-120.818-50.49-189.482 0-10.005-3.669-18.676-11.007-26.013-2.666-3.328-6.164-5.824-10.494-7.487-4.33-1.664-7.498-2.496-9.503-2.496h-4c-10.004 0-18.334 3.338-24.99 10.015-4.01 4.01-6.846 8.18-8.51 12.51-1.664 4.33-2.496 7.498-2.496 9.503v4c0 60.665 11.828 118.663 35.484 173.996 23.656 55.332 55.482 102.996 95.477 142.991 39.996 39.996 87.66 71.822 142.992 95.478 55.332 23.656 113.33 35.483 173.996 35.483 60.665 0 118.664-11.827 173.996-35.483 55.332-23.656 102.996-55.482 142.992-95.478 39.995-39.995 71.82-87.659 95.477-142.991 23.656-55.333 35.484-113.331 35.484-173.996 0-60.665-11.828-118.664-35.484-173.996-23.656-55.333-55.482-102.997-95.477-142.992-39.996-39.996-87.66-71.821-142.992-95.477C630.664 75.989 572.666 64.16 512 64.16v-.032z"/></symbol><symbol id="ai-ui-sdk-baocun" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M864 96c35.346 0 64 28.654 64 64v704c0 35.346-28.654 64-64 64H160c-35.346 0-64-28.654-64-64V160c0-35.346 28.654-64 64-64h704zm-608 64h-96v704h704V160h-96v224c0 35.346-28.654 64-64 64H320c-35.346 0-64-28.654-64-64V160zm448 0H320v224h384V160zm-96 64c17.673 0 32 14.327 32 32v32c0 17.673-14.327 32-32 32-17.673 0-32-14.327-32-32v-32c0-17.673 14.327-32 32-32z"/></symbol><symbol id="ai-ui-sdk-markdown" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32h424.8zM443.562 477.562h-90V768h55.876V603.75c0-24.5-.813-48.938-2.438-73.312h1.688c4.374 21.374 7.437 34.437 9.187 39.187L490.438 768h49.312l71.625-200.25c2.25-6.25 5.25-18.688 9-37.312h1.5c-1.625 24.624-2.437 45.062-2.437 61.312V768h61.124V477.562H593l-62.812 175.126c-4.126 11.624-8.126 25.374-12 41.25h-1.313c-1.875-12.75-5.437-26.376-10.687-40.876l-62.626-175.5zM602 137.8V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-ppt-2" viewBox="0 0 1024 1024"><path fill="#979BA5" fill-rule="evenodd" d="M616.8 64c8.5 0 16.6 3.4 22.6 9.4l215.2 215.2c6 6 9.4 14.2 9.4 22.7V928c0 17.7-14.3 32-32 32H192c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM656 704H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h288c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm-64-128H368c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h224c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zM464 448h-96c-8.837 0-16 7.163-16 16v32c0 8.837 7.163 16 16 16h96c8.837 0 16-7.163 16-16v-32c0-8.837-7.163-16-16-16zm138-310.2V326h188.2L602 137.8z"/></symbol><symbol id="ai-ui-sdk-dongzuo-shangchuan" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M192 640v192h640V640h64v224c0 17.6-14.4 32-32 32H160c-17.6 0-32-14.4-32-32V640h64zm320-512l44.8 44.8 136 136-44.8 44.8-104-102.4V704h-64V251.2L376 353.6l-44.8-44.8L512 128z"/></symbol><symbol id="ai-ui-sdk-wangye" viewBox="0 0 1024 1024"><path d="M287.802 485.456h197.767V309.4H329.1a504.602 504.602 0 00-41.297 176.055zm197.767-374.937c-52.242 39.631-96.242 89.163-129.51 145.794h129.51V110.519zm52.862 374.937h197.04A506.134 506.134 0 00694.173 309.4H538.497v176.055h-.066zm-209 230.072h156.138V538.544H287.802c3.171 62.114 17.576 121.838 41.628 176.984zm583.192 0c27.091-53.686 43.677-113.543 47.31-176.984H788.268a560.422 560.422 0 01-37.135 176.984h161.491zM751.462 309.4c21.475 55.478 34.03 114.738 36.87 176.055H960A450.637 450.637 0 00913.086 309.4H751.462zM538.43 111.05v145.196h128.717c-33.09-56.349-76.813-105.67-128.717-145.196zm189.111 145.263H882.03C808.627 149.146 692.716 79.04 564.07 64c68.492 50.626 124.433 116.436 163.473 192.313zM485.57 913.614V768.616H356.522c33.196 56.316 77.034 105.573 129.047 144.998zM271.811 309.401h-160.83a449.438 449.438 0 00-46.915 176.055H234.94A561.822 561.822 0 01271.811 309.4zm24.316 459.215H142.631c73.224 106.308 188.366 175.931 316.177 191.185-68.057-50.411-123.707-115.813-162.68-191.185zm431.019 0C688.168 844.08 632.467 909.554 564.333 960c128.183-15.038 243.717-84.768 317.102-191.384h-154.29zm-60.394 0H538.43v144.4c51.662-39.354 95.239-88.392 128.32-144.4zM234.94 538.544H64c3.7 63.44 20.22 123.298 47.377 176.984h160.699a558.557 558.557 0 01-37.136-176.984zm500.531 0h-197.04v176.984h155.412a505.266 505.266 0 0041.628-176.984zm-439.74-282.231c38.988-75.778 94.835-141.516 163.21-192.114-128.266 15.233-243.774 85.24-316.97 192.114h153.76z"/></symbol><symbol id="ai-ui-sdk-zhishiku" viewBox="0 0 1024 1024"><path d="M320.986 203.315H191.622c-17.248 0-31.622 14.503-31.622 31.905v639.542c0 17.403 14.374 31.905 31.622 31.905h129.364c17.249 0 31.623-14.502 31.623-31.905V235.22c0-17.402-14.374-31.905-31.623-31.905zm-35.934 130.52h-57.495c-15.811 0-28.748-13.053-28.748-29.005 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zM578.277 96H448.913c-17.249 0-31.622 14.502-31.622 31.905v746.857c0 17.403 14.373 31.905 31.622 31.905h129.364c17.248 0 31.622-14.502 31.622-31.905V127.905C611.337 110.502 596.963 96 578.277 96zM543.78 227.969h-57.495c-15.811 0-28.748-13.052-28.748-29.004 0-15.952 12.937-29.004 28.748-29.004h57.495c15.811 0 28.747 13.052 28.747 29.004 0 15.952-12.936 29.004-28.747 29.004zm383.78 613.438l-120.74-627.94c-4.312-15.952-17.249-26.104-33.06-26.104h-5.75l-126.488 24.654c-17.249 2.9-28.748 20.303-25.873 37.705l122.177 629.39c2.875 15.953 15.811 26.104 31.622 26.104h5.75l126.489-24.653c17.248-4.35 28.748-21.753 25.873-39.156zM762.26 312.081l-57.495 11.602h-5.75c-12.936 0-25.872-10.152-28.747-23.204-2.875-15.952 7.187-31.904 22.998-34.805l57.495-11.601c15.811-2.9 31.623 7.25 34.497 23.203 2.875 15.952-7.187 31.905-22.998 34.805z"/></symbol><symbol id="ai-ui-sdk-sikao" viewBox="0 0 1024 1024"><path d="M528 96c61.856 0 112 50.144 112 112 0 .376-.002.751-.006 1.126C774.73 260.666 870.4 391.16 870.4 544c0 22.55-2.082 44.612-6.066 66.007C883.94 630.144 896 657.663 896 688c0 61.856-50.144 112-112 112a112.7 112.7 0 01-19.49-1.69C699.754 862.65 610.519 902.4 512 902.4s-187.753-39.75-252.539-104.088A112.33 112.33 0 01240 800c-61.856 0-112-50.144-112-112 0-30.337 12.061-57.856 31.65-78.025A361.172 361.172 0 01153.6 544c0-164.845 111.29-303.696 262.836-345.518C421.232 141.079 469.35 96 528 96zm-91.48 176.633l-4.469 1.278C315.47 308.366 230.4 416.249 230.4 544c0 10.923.622 21.7 1.832 32.3l1.623-.134L240 576c61.856 0 112 50.144 112 112 0 26.132-8.95 50.173-23.95 69.226C377.36 799.817 441.67 825.6 512 825.6c70.33 0 134.639-25.783 183.99-68.412C680.95 738.173 672 714.132 672 688c0-61.856 50.144-112 112-112 2.607 0 5.194.09 7.757.264A280.989 280.989 0 00793.6 544c0-119.973-75.025-222.422-180.718-262.99C592.35 304.904 561.938 320 528 320c-37.782 0-71.195-18.708-91.48-47.367z"/></symbol><symbol id="ai-ui-sdk-wenzhang" viewBox="0 0 1024 1024"><path fill="#3D4265" d="M708.923 157.538h275.692c21.752 0 39.385 17.634 39.385 39.385v748.308c0 43.503-35.266 78.769-78.77 78.769H708.924V157.538z"/><path fill="#3A84FF" d="M0 984.615A39.385 39.385 0 0039.385 1024H945.23c-43.503 0-78.77-35.266-78.77-78.77V39.386C866.462 17.633 848.829 0 827.078 0H39.385C17.633 0 0 17.633 0 39.385v945.23z"/><path fill="#FFF" d="M196.923 288.82c-21.751 0-39.385 17.634-39.385 39.385 0 21.752 17.634 39.385 39.385 39.385h157.539c21.751 0 39.384-17.633 39.384-39.385 0-21.751-17.633-39.384-39.384-39.384H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h472.615c21.752 0 39.385-17.633 39.385-39.384 0-21.752-17.633-39.385-39.385-39.385H196.923zm0 236.308c-21.751 0-39.385 17.633-39.385 39.385 0 21.751 17.634 39.384 39.385 39.384h236.308c21.751 0 39.384-17.633 39.384-39.384 0-21.752-17.633-39.385-39.384-39.385H196.923z"/></g></symbol><symbol id="ai-ui-sdk-yanjing-kejian" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512 192c247.4 0 448 143.3 448 320S759.4 832 512 832 64 688.7 64 512s200.6-320 448-320zm0 64c-54.2 0-106.6 7.5-155.9 22.4-46.6 14.1-88.3 34.1-123.7 59.4C165.1 385.9 128 447.8 128 512c0 64.2 37.1 126.1 104.4 174.2 35.4 25.3 77.1 45.3 123.7 59.4C405.4 760.5 457.8 768 512 768s106.6-7.5 155.9-22.4c46.6-14.1 88.3-34.1 123.7-59.4C858.9 638.1 896 576.2 896 512c0-64.2-37.1-126.1-104.4-174.2-35.4-25.3-77.1-45.3-123.7-59.4C618.6 263.5 566.2 256 512 256zm0 96c88.4 0 160 71.6 160 160s-71.6 160-160 160-160-71.6-160-160 71.6-160 160-160zm0 64c-52.9 0-96 43.1-96 96s43.1 96 96 96 96-43.1 96-96-43.1-96-96-96z"/></symbol><symbol id="ai-ui-sdk-gengduo-2" viewBox="0 0 1024 1024"><path fill-rule="evenodd" d="M512.55 319.995c35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448m-1.102 112.004c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448m0 240c-35.135.295-63.448 28.876-63.448 63.998v.55c.307 35.34 29.21 63.742 64.55 63.448 35.34-.294 63.742-29.196 63.448-64.548-.307-35.353-29.197-63.742-64.55-63.448"/></symbol><symbol id="ai-ui-sdk-sync-passed" viewBox="0 0 1024 1024"><path fill="#cddffe" d="M704 512a192 192 0 01-192 192 192 192 0 01-192-192 192 192 0 01384 0z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#3a84ff" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol><symbol id="ai-ui-sdk-sync-failed-2-2" viewBox="0 0 1024 1024"><path fill="#f1e4f4" d="M704 512c0 106-86 192-192 192s-192-86-192-192 86-192 192-192 192 86 192 192z"/><path fill="#cddffe" d="M512 768c141.4 0 256-114.6 256-256 0 140.8-115.2 256-256 256zM256 512c0 141.4 114.6 256 256 256-140.8 0-256-115.2-256-256zM768 512c0-141.4-114.6-256-256-256 140.8 0 256 115.2 256 256zM512 256c-141.4 0-256 114.6-256 256 0-140.8 115.2-256 256-256z"/><path fill="#cb36ea" d="M768 512c0-140.8-115.2-256-256-256S256 371.2 256 512s115.2 256 256 256 256-115.2 256-256zM512 704c-108.8 0-192-83.2-192-192s83.2-192 192-192 192 83.2 192 192-83.2 192-192 192z"/></symbol></svg>';
|
|
3
3
|
if (document.body) {
|
|
4
4
|
document.body.insertAdjacentHTML('afterbegin', svgCode);
|
|
5
5
|
} else {
|
|
6
|
-
document.addEventListener('DOMContentLoaded', ()
|
|
6
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
7
7
|
document.body.insertAdjacentHTML('afterbegin', svgCode);
|
|
8
8
|
});
|
|
9
9
|
}
|
package/dist/css/style.css
CHANGED
package/dist/hooks/use-chat.d.ts
CHANGED
|
@@ -84,7 +84,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
84
84
|
url: string;
|
|
85
85
|
generateType: import("../types/enum").EnumCharacter;
|
|
86
86
|
id?: number;
|
|
87
|
-
status?:
|
|
87
|
+
status?: import("../types/enum").ResourceStatus;
|
|
88
88
|
isSensitive?: boolean;
|
|
89
89
|
permission?: {
|
|
90
90
|
accessModel?: boolean;
|
|
@@ -111,7 +111,12 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
111
111
|
manageQueryTemplate?: boolean;
|
|
112
112
|
viewDataset?: boolean;
|
|
113
113
|
manageDataset?: boolean;
|
|
114
|
+
createMcp?: boolean;
|
|
115
|
+
manageMcp?: boolean;
|
|
116
|
+
viewMcp?: boolean;
|
|
114
117
|
};
|
|
118
|
+
credentialId?: number;
|
|
119
|
+
credentialType?: import("../types/enum").ToolCrdentialType;
|
|
115
120
|
}[];
|
|
116
121
|
anchorPathResources?: {
|
|
117
122
|
knowledges?: {
|
|
@@ -161,6 +166,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
161
166
|
manageQueryTemplate?: boolean;
|
|
162
167
|
viewDataset?: boolean;
|
|
163
168
|
manageDataset?: boolean;
|
|
169
|
+
createMcp?: boolean;
|
|
170
|
+
manageMcp?: boolean;
|
|
171
|
+
viewMcp?: boolean;
|
|
164
172
|
};
|
|
165
173
|
anchorPath?: string;
|
|
166
174
|
linkFiles?: {
|
|
@@ -227,6 +235,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
227
235
|
updatedBy?: string;
|
|
228
236
|
errorMessage?: string;
|
|
229
237
|
isStructured?: boolean;
|
|
238
|
+
credentialId?: number;
|
|
230
239
|
indexConfig?: {
|
|
231
240
|
vector_indexes: {
|
|
232
241
|
index_name: string;
|
|
@@ -273,6 +282,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
273
282
|
handleType?: string[];
|
|
274
283
|
updateFrequency?: number;
|
|
275
284
|
name: string;
|
|
285
|
+
type?: import("../types/enum").KnowledgebaseType;
|
|
276
286
|
status?: import("../types/enum").ResourceStatus;
|
|
277
287
|
generateType?: import("../types/enum").EnumCharacter;
|
|
278
288
|
pathType?: import("../types/enum").KnowledgePathType;
|
|
@@ -339,6 +349,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
339
349
|
manageQueryTemplate?: boolean;
|
|
340
350
|
viewDataset?: boolean;
|
|
341
351
|
manageDataset?: boolean;
|
|
352
|
+
createMcp?: boolean;
|
|
353
|
+
manageMcp?: boolean;
|
|
354
|
+
viewMcp?: boolean;
|
|
342
355
|
};
|
|
343
356
|
children?: /*elided*/ any[];
|
|
344
357
|
}[];
|
|
@@ -355,6 +368,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
355
368
|
handleType?: string[];
|
|
356
369
|
updateFrequency?: number;
|
|
357
370
|
name: string;
|
|
371
|
+
type?: import("../types/enum").KnowledgebaseType;
|
|
358
372
|
status?: import("../types/enum").ResourceStatus;
|
|
359
373
|
generateType?: import("../types/enum").EnumCharacter;
|
|
360
374
|
pathType?: import("../types/enum").KnowledgePathType;
|
|
@@ -421,6 +435,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
421
435
|
manageQueryTemplate?: boolean;
|
|
422
436
|
viewDataset?: boolean;
|
|
423
437
|
manageDataset?: boolean;
|
|
438
|
+
createMcp?: boolean;
|
|
439
|
+
manageMcp?: boolean;
|
|
440
|
+
viewMcp?: boolean;
|
|
424
441
|
};
|
|
425
442
|
children?: /*elided*/ any[];
|
|
426
443
|
}[];
|
|
@@ -503,7 +520,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
503
520
|
url: string;
|
|
504
521
|
generateType: import("../types/enum").EnumCharacter;
|
|
505
522
|
id?: number;
|
|
506
|
-
status?:
|
|
523
|
+
status?: import("../types/enum").ResourceStatus;
|
|
507
524
|
isSensitive?: boolean;
|
|
508
525
|
permission?: {
|
|
509
526
|
accessModel?: boolean;
|
|
@@ -530,7 +547,12 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
530
547
|
manageQueryTemplate?: boolean;
|
|
531
548
|
viewDataset?: boolean;
|
|
532
549
|
manageDataset?: boolean;
|
|
550
|
+
createMcp?: boolean;
|
|
551
|
+
manageMcp?: boolean;
|
|
552
|
+
viewMcp?: boolean;
|
|
533
553
|
};
|
|
554
|
+
credentialId?: number;
|
|
555
|
+
credentialType?: import("../types/enum").ToolCrdentialType;
|
|
534
556
|
}[];
|
|
535
557
|
anchorPathResources?: {
|
|
536
558
|
knowledges?: {
|
|
@@ -580,6 +602,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
580
602
|
manageQueryTemplate?: boolean;
|
|
581
603
|
viewDataset?: boolean;
|
|
582
604
|
manageDataset?: boolean;
|
|
605
|
+
createMcp?: boolean;
|
|
606
|
+
manageMcp?: boolean;
|
|
607
|
+
viewMcp?: boolean;
|
|
583
608
|
};
|
|
584
609
|
anchorPath?: string;
|
|
585
610
|
linkFiles?: {
|
|
@@ -646,6 +671,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
646
671
|
updatedBy?: string;
|
|
647
672
|
errorMessage?: string;
|
|
648
673
|
isStructured?: boolean;
|
|
674
|
+
credentialId?: number;
|
|
649
675
|
indexConfig?: {
|
|
650
676
|
vector_indexes: {
|
|
651
677
|
index_name: string;
|
|
@@ -692,6 +718,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
692
718
|
handleType?: string[];
|
|
693
719
|
updateFrequency?: number;
|
|
694
720
|
name: string;
|
|
721
|
+
type?: import("../types/enum").KnowledgebaseType;
|
|
695
722
|
status?: import("../types/enum").ResourceStatus;
|
|
696
723
|
generateType?: import("../types/enum").EnumCharacter;
|
|
697
724
|
pathType?: import("../types/enum").KnowledgePathType;
|
|
@@ -758,6 +785,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
758
785
|
manageQueryTemplate?: boolean;
|
|
759
786
|
viewDataset?: boolean;
|
|
760
787
|
manageDataset?: boolean;
|
|
788
|
+
createMcp?: boolean;
|
|
789
|
+
manageMcp?: boolean;
|
|
790
|
+
viewMcp?: boolean;
|
|
761
791
|
};
|
|
762
792
|
children?: /*elided*/ any[];
|
|
763
793
|
}[];
|
|
@@ -774,6 +804,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
774
804
|
handleType?: string[];
|
|
775
805
|
updateFrequency?: number;
|
|
776
806
|
name: string;
|
|
807
|
+
type?: import("../types/enum").KnowledgebaseType;
|
|
777
808
|
status?: import("../types/enum").ResourceStatus;
|
|
778
809
|
generateType?: import("../types/enum").EnumCharacter;
|
|
779
810
|
pathType?: import("../types/enum").KnowledgePathType;
|
|
@@ -840,6 +871,9 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
840
871
|
manageQueryTemplate?: boolean;
|
|
841
872
|
viewDataset?: boolean;
|
|
842
873
|
manageDataset?: boolean;
|
|
874
|
+
createMcp?: boolean;
|
|
875
|
+
manageMcp?: boolean;
|
|
876
|
+
viewMcp?: boolean;
|
|
843
877
|
};
|
|
844
878
|
children?: /*elided*/ any[];
|
|
845
879
|
}[];
|
|
@@ -875,7 +909,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
875
909
|
reGenerateChat: (sessionCode: string, sessionContent: ISessionContent, sessionIndex: number) => void;
|
|
876
910
|
reSendChat: (sessionCode: string, sessionContent: ISessionContent, sessionIndex: number) => Promise<void>;
|
|
877
911
|
deleteChat: (index: number, sessionCode: string) => void;
|
|
878
|
-
getAgentInfoApi: () => Promise<import("../types
|
|
912
|
+
getAgentInfoApi: () => Promise<import("../types").IAgentInfo>;
|
|
879
913
|
clearSessionApi: (sessionCode: string) => Promise<unknown>;
|
|
880
914
|
getSessionsApi: () => Promise<ISession[]>;
|
|
881
915
|
plusSessionApi: (data: ISession) => Promise<ISession>;
|
|
@@ -888,6 +922,7 @@ export declare const useChat: ({ handleStart, handleText, handleReferenceDoc, ha
|
|
|
888
922
|
modifySessionContentApi: (data: ISessionContent) => Promise<ISessionContent>;
|
|
889
923
|
deleteSessionContentApi: (id: number) => Promise<ISessionContent>;
|
|
890
924
|
batchDeleteSessionContentsApi: (ids: number[]) => Promise<number>;
|
|
925
|
+
renameSessionApi: (sessionCode: string) => Promise<ISession>;
|
|
891
926
|
updateRequestOptions: (newOptions: Partial<typeof requestOptions>) => void;
|
|
892
927
|
};
|
|
893
928
|
export {};
|
|
@@ -90,7 +90,12 @@ import { HttpErrorCode, SessionContentRole, SessionContentStatus } from '../type
|
|
|
90
90
|
// ai 聊天
|
|
91
91
|
export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThink, handleEnd, handleError, requestOptions, otherOptions })=>{
|
|
92
92
|
// 创建一个变量保存当前的API实现
|
|
93
|
-
let apiImpl = useSessionHttp(
|
|
93
|
+
let apiImpl = useSessionHttp({
|
|
94
|
+
apiPrefix: requestOptions.url,
|
|
95
|
+
headers: requestOptions.headers,
|
|
96
|
+
beforeRequest: requestOptions.beforeRequest,
|
|
97
|
+
afterRequest: requestOptions.afterRequest
|
|
98
|
+
});
|
|
94
99
|
// start message
|
|
95
100
|
const startMessage = '内容正在生成中...';
|
|
96
101
|
// 用 ref 存储 requestOptions,使其可更新
|
|
@@ -213,7 +218,9 @@ export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThi
|
|
|
213
218
|
handleReferenceDoc: handleReferenceDocChat,
|
|
214
219
|
handleThink: handleThinkChat,
|
|
215
220
|
handleEnd: handleEndChat,
|
|
216
|
-
handleError: handleErrorChat
|
|
221
|
+
handleError: handleErrorChat,
|
|
222
|
+
beforeRequest: requestOptions.beforeRequest,
|
|
223
|
+
afterRequest: requestOptions.afterRequest
|
|
217
224
|
});
|
|
218
225
|
// 更新 requestOptions 的方法
|
|
219
226
|
function updateRequestOptions(newOptions) {
|
|
@@ -221,7 +228,12 @@ export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThi
|
|
|
221
228
|
currentRequestOptions.value = _object_spread({}, currentRequestOptions.value, newOptions);
|
|
222
229
|
// 如果 URL 变更,重新获取 API
|
|
223
230
|
if (newOptions.url || newOptions.headers) {
|
|
224
|
-
apiImpl = useSessionHttp(
|
|
231
|
+
apiImpl = useSessionHttp({
|
|
232
|
+
apiPrefix: currentRequestOptions.value.url,
|
|
233
|
+
headers: currentRequestOptions.value.headers,
|
|
234
|
+
beforeRequest: currentRequestOptions.value.beforeRequest,
|
|
235
|
+
afterRequest: currentRequestOptions.value.afterRequest
|
|
236
|
+
});
|
|
225
237
|
}
|
|
226
238
|
}
|
|
227
239
|
// 新增 db
|
|
@@ -656,6 +668,7 @@ export const useChat = ({ handleStart, handleText, handleReferenceDoc, handleThi
|
|
|
656
668
|
modifySessionContentApi: (...args)=>apiImpl.modifySessionContent(...args),
|
|
657
669
|
deleteSessionContentApi: (...args)=>apiImpl.deleteSessionContent(...args),
|
|
658
670
|
batchDeleteSessionContentsApi: (...args)=>apiImpl.batchDeleteSessionContents(...args),
|
|
671
|
+
renameSessionApi: (...args)=>apiImpl.renameSession(...args),
|
|
659
672
|
updateRequestOptions
|
|
660
673
|
};
|
|
661
674
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Ref } from 'vue';
|
|
2
|
-
import type { IBatchRetryReviewDatasetData, IBatchReviewDatasetData, IComponent, IDatasetApi, IDatasetDataApi, IDatasetDataForm, IDatasetDataParam, IDatasetForm, IDatasetInfo, IDatasetListParam, IOperatRecordParam, ISchema, IUserInfoForm } from '@/types/dataset';
|
|
2
|
+
import type { IBatchRetryReviewDatasetData, IBatchReviewDatasetData, IComponent, IDatasetApi, IDatasetDataApi, IDatasetDataForm, IDatasetDataParam, IDatasetForm, IDatasetInfo, IDatasetListParam, IDatasetStatusInfo, IOperatRecordParam, ISchema, IUserInfoForm } from '@/types/dataset';
|
|
3
3
|
import type { ITagApi } from '@/types/meta';
|
|
4
4
|
export declare const useDatasetHttp: (apiPrefix?: string, spaceId?: Ref<string>) => {
|
|
5
5
|
getCompanyList: () => Promise<import("@/types/dataset").ICompany[]>;
|
|
@@ -10,9 +10,13 @@ export declare const useDatasetHttp: (apiPrefix?: string, spaceId?: Ref<string>)
|
|
|
10
10
|
results: import("@/types/dataset").IDataset[];
|
|
11
11
|
}>;
|
|
12
12
|
getDataset: (id: number) => Promise<import("@/types/dataset").IDataset>;
|
|
13
|
+
getDatasetStatusInfo: (id: number) => Promise<IDatasetStatusInfo>;
|
|
13
14
|
createDataset: (data: IDatasetForm) => Promise<import("@/types/dataset").IDataset>;
|
|
14
15
|
updateDataset: (data: IDatasetForm, id: number) => Promise<import("@/types/dataset").IDataset>;
|
|
15
16
|
deleteDataset: (id: number) => Promise<IDatasetApi>;
|
|
17
|
+
exportDataset: (id: number) => void;
|
|
18
|
+
getDatasetApiGuide: (id: number) => Promise<import("@/types/dataset").IDatasetApiGuide>;
|
|
19
|
+
getDatasetDataIds: (query: IDatasetDataParam) => Promise<number[]>;
|
|
16
20
|
getDatasetDataList: (query: IDatasetDataParam) => Promise<{
|
|
17
21
|
count: number;
|
|
18
22
|
results: import("@/types/dataset").IDatasetData[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import fetch from '../http/fetch/index.ts.js';
|
|
2
|
-
import { transferBatchRetryReviewDatasetData2BatchRetryReviewDatasetDataApi, transferBatchReviewDatasetData2BatchReviewDatasetDataApi, transferCompanyApi2Company, transferCompanyParticipantApi2CompanyParticipantList, transferCreateDatasetDataResultApi2CreateDatasetDataResult, transferDatasetApi2Dataset, transferDatasetDataApi2DatasetData, transferDatasetDataFileApi2DatasetDataFile, transferDatasetDataForm2DatasetDataFormApi, transferDatasetDataParam2DatasetDataParamApi, transferDatasetForm2DatasetFormApi, transferDatasetListParam2DatasetListParamApi, transferOperatRecordApi2OperatRecord, transferOperatRecordParam2OperatRecordParamApi, transferUserInfoApi2UserInfo, transferUserInfoForm2UserInfoFormApi } from '../http/helper/dataset.ts.js';
|
|
2
|
+
import { transferBatchRetryReviewDatasetData2BatchRetryReviewDatasetDataApi, transferBatchReviewDatasetData2BatchReviewDatasetDataApi, transferCompanyApi2Company, transferCompanyParticipantApi2CompanyParticipantList, transferCreateDatasetDataResultApi2CreateDatasetDataResult, transferDatasetApi2Dataset, transferDatasetApiGuideApi2DatasetApiGuide, transferDatasetDataApi2DatasetData, transferDatasetDataFileApi2DatasetDataFile, transferDatasetDataForm2DatasetDataFormApi, transferDatasetDataParam2DatasetDataParamApi, transferDatasetForm2DatasetFormApi, transferDatasetListParam2DatasetListParamApi, transferOperatRecordApi2OperatRecord, transferOperatRecordParam2OperatRecordParamApi, transferUserInfoApi2UserInfo, transferUserInfoForm2UserInfoFormApi } from '../http/helper/dataset.ts.js';
|
|
3
3
|
import { transferTagApi2Tag } from '../http/helper/meta.ts.js';
|
|
4
4
|
const datasetPerfix = 'dataset/v1';
|
|
5
5
|
const metaPerfix = 'meta/v1';
|
|
@@ -80,6 +80,12 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
|
|
|
80
80
|
noCheckPermission: true,
|
|
81
81
|
globalError: false
|
|
82
82
|
}).then(transferDatasetApi2Dataset);
|
|
83
|
+
// 获取数据集状态信息
|
|
84
|
+
const getDatasetStatusInfo = (id)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/${id}/info/`, undefined, {
|
|
85
|
+
headers: {
|
|
86
|
+
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
87
|
+
}
|
|
88
|
+
});
|
|
83
89
|
// 创建数据集
|
|
84
90
|
const createDataset = (data)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset/`, transferDatasetForm2DatasetFormApi(data), {
|
|
85
91
|
headers: {
|
|
@@ -98,6 +104,23 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
|
|
|
98
104
|
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
99
105
|
}
|
|
100
106
|
});
|
|
107
|
+
// 导出数据集
|
|
108
|
+
const exportDataset = (id)=>{
|
|
109
|
+
const url = `${apiPrefix}/${datasetPerfix}/dataset/${id}/export/`;
|
|
110
|
+
window.open(url, '_blank');
|
|
111
|
+
};
|
|
112
|
+
// 获取数据集 API 指引
|
|
113
|
+
const getDatasetApiGuide = (id)=>fetch.get(`${apiPrefix}/${datasetPerfix}/dataset/${id}/api_guide/`, undefined, {
|
|
114
|
+
headers: {
|
|
115
|
+
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
116
|
+
}
|
|
117
|
+
}).then(transferDatasetApiGuideApi2DatasetApiGuide);
|
|
118
|
+
// 获取数据集数据 ID 列表
|
|
119
|
+
const getDatasetDataIds = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/ids/`, transferDatasetDataParam2DatasetDataParamApi(query), {
|
|
120
|
+
headers: {
|
|
121
|
+
'x-space-id': spaceId === null || spaceId === void 0 ? void 0 : spaceId.value
|
|
122
|
+
}
|
|
123
|
+
});
|
|
101
124
|
// 获取数据集数据列表
|
|
102
125
|
const getDatasetDataList = (query)=>fetch.post(`${apiPrefix}/${datasetPerfix}/dataset_item/list/`, transferDatasetDataParam2DatasetDataParamApi(query), {
|
|
103
126
|
headers: {
|
|
@@ -208,9 +231,13 @@ export const useDatasetHttp = (apiPrefix, spaceId)=>{
|
|
|
208
231
|
getComponentList,
|
|
209
232
|
getDatasetList,
|
|
210
233
|
getDataset,
|
|
234
|
+
getDatasetStatusInfo,
|
|
211
235
|
createDataset,
|
|
212
236
|
updateDataset,
|
|
213
237
|
deleteDataset,
|
|
238
|
+
exportDataset,
|
|
239
|
+
getDatasetApiGuide,
|
|
240
|
+
getDatasetDataIds,
|
|
214
241
|
getDatasetDataList,
|
|
215
242
|
createDatasetData,
|
|
216
243
|
updateDatasetData,
|
|
@@ -1,5 +1,11 @@
|
|
|
1
|
+
import type { RequestHookData } from '@/types/common';
|
|
1
2
|
import type { ISession, ISessionContent } from '@/types/session';
|
|
2
|
-
export declare const useSessionHttp: (apiPrefix
|
|
3
|
+
export declare const useSessionHttp: ({ apiPrefix, headers, beforeRequest, afterRequest, }: {
|
|
4
|
+
apiPrefix: string;
|
|
5
|
+
headers?: Record<string, string>;
|
|
6
|
+
beforeRequest?: (data: RequestHookData) => RequestHookData;
|
|
7
|
+
afterRequest?: (data: RequestHookData, response: Response) => void;
|
|
8
|
+
}) => {
|
|
3
9
|
getAgentInfo: () => Promise<import("@/types/agent").IAgentInfo>;
|
|
4
10
|
clearSession: (sessionCode: string) => Promise<unknown>;
|
|
5
11
|
getSessions: () => Promise<ISession[]>;
|
|
@@ -13,4 +19,5 @@ export declare const useSessionHttp: (apiPrefix: string, headers?: Record<string
|
|
|
13
19
|
modifySessionContent: (data: ISessionContent) => Promise<ISessionContent>;
|
|
14
20
|
deleteSessionContent: (id: number) => Promise<ISessionContent>;
|
|
15
21
|
batchDeleteSessionContents: (ids: number[]) => Promise<number>;
|
|
22
|
+
renameSession: (sessionCode: string) => Promise<ISession>;
|
|
16
23
|
};
|
|
@@ -2,65 +2,100 @@ import fetch from '../http/fetch/index.ts.js';
|
|
|
2
2
|
import { transferAgentInfoApi2AgentInfo } from '../http/helper/agent.ts.js';
|
|
3
3
|
import { transferSession2SessionApi, transferSessionApi2Session, transferSessionContent2SessionContentApi, transferSessionContentApi2SessionContent } from '../http/helper/session.ts.js';
|
|
4
4
|
// session 相关接口
|
|
5
|
-
export const useSessionHttp = (apiPrefix, headers)=>{
|
|
5
|
+
export const useSessionHttp = ({ apiPrefix, headers, beforeRequest, afterRequest })=>{
|
|
6
6
|
// 获取 agent 信息
|
|
7
7
|
const getAgentInfo = ()=>fetch.get(`${apiPrefix}/agent/info/`, undefined, {
|
|
8
|
-
headers
|
|
8
|
+
headers,
|
|
9
|
+
beforeRequest,
|
|
10
|
+
afterRequest
|
|
9
11
|
}).then((res)=>transferAgentInfoApi2AgentInfo(res));
|
|
10
12
|
// 清除聊天上下文
|
|
11
13
|
const clearSession = (sessionCode)=>fetch.post(`${apiPrefix}/chat_completion/${sessionCode}/clear/`, undefined, {
|
|
12
|
-
headers
|
|
14
|
+
headers,
|
|
15
|
+
beforeRequest,
|
|
16
|
+
afterRequest
|
|
13
17
|
});
|
|
14
18
|
// 获取会话列表
|
|
15
19
|
const getSessions = ()=>fetch.get(`${apiPrefix}/session/`, undefined, {
|
|
16
|
-
headers
|
|
20
|
+
headers,
|
|
21
|
+
beforeRequest,
|
|
22
|
+
afterRequest
|
|
17
23
|
}).then((res)=>res.map(transferSessionApi2Session));
|
|
18
24
|
// 新增会话
|
|
19
25
|
const plusSession = (data)=>fetch.post(`${apiPrefix}/session/`, transferSession2SessionApi(data), {
|
|
20
|
-
headers
|
|
26
|
+
headers,
|
|
27
|
+
beforeRequest,
|
|
28
|
+
afterRequest
|
|
21
29
|
}).then((res)=>transferSessionApi2Session(res));
|
|
22
30
|
// 修改会话
|
|
23
31
|
const modifySession = (data)=>fetch.put(`${apiPrefix}/session/${data.sessionCode}/`, transferSession2SessionApi(data), {
|
|
24
|
-
headers
|
|
32
|
+
headers,
|
|
33
|
+
beforeRequest,
|
|
34
|
+
afterRequest
|
|
25
35
|
}).then((res)=>transferSessionApi2Session(res));
|
|
26
36
|
// 删除会话
|
|
27
37
|
const deleteSession = (sessionCode)=>fetch.delete(`${apiPrefix}/session/${sessionCode}/`, undefined, {
|
|
28
|
-
headers
|
|
38
|
+
headers,
|
|
39
|
+
beforeRequest,
|
|
40
|
+
afterRequest
|
|
29
41
|
});
|
|
30
42
|
// 批量删除会话
|
|
31
43
|
const batchDeleteSessions = (sessionCodes)=>fetch.post(`${apiPrefix}/session/batch_delete/`, {
|
|
32
44
|
session_codes: sessionCodes
|
|
33
45
|
}, {
|
|
34
|
-
headers
|
|
46
|
+
headers,
|
|
47
|
+
beforeRequest,
|
|
48
|
+
afterRequest
|
|
35
49
|
});
|
|
36
50
|
// 获取会话资源
|
|
37
51
|
const getSession = (sessionCode)=>fetch.get(`${apiPrefix}/session/${sessionCode}/`, undefined, {
|
|
38
|
-
headers
|
|
52
|
+
headers,
|
|
53
|
+
beforeRequest,
|
|
54
|
+
afterRequest
|
|
39
55
|
}).then((res)=>transferSessionApi2Session(res));
|
|
40
56
|
// 获取会话内容列表
|
|
41
57
|
const getSessionContents = (sessionCode)=>fetch.get(`${apiPrefix}/session_content/content/`, {
|
|
42
58
|
session_code: sessionCode
|
|
43
59
|
}, {
|
|
44
|
-
headers
|
|
60
|
+
headers,
|
|
61
|
+
beforeRequest,
|
|
62
|
+
afterRequest
|
|
45
63
|
}).then((res)=>res.map(transferSessionContentApi2SessionContent));
|
|
46
64
|
// 新增会话内容
|
|
47
65
|
const plusSessionContent = (data)=>fetch.post(`${apiPrefix}/session_content/`, transferSessionContent2SessionContentApi(data), {
|
|
48
|
-
headers
|
|
66
|
+
headers,
|
|
67
|
+
beforeRequest,
|
|
68
|
+
afterRequest
|
|
49
69
|
});
|
|
50
70
|
// 修改会话内容
|
|
51
71
|
const modifySessionContent = (data)=>fetch.put(`${apiPrefix}/session_content/${data.id}/`, transferSessionContent2SessionContentApi(data), {
|
|
52
|
-
headers
|
|
72
|
+
headers,
|
|
73
|
+
beforeRequest,
|
|
74
|
+
afterRequest
|
|
53
75
|
});
|
|
54
76
|
// 删除会话内容
|
|
55
77
|
const deleteSessionContent = (id)=>fetch.delete(`${apiPrefix}/session_content/${id}/`, undefined, {
|
|
56
|
-
headers
|
|
78
|
+
headers,
|
|
79
|
+
beforeRequest,
|
|
80
|
+
afterRequest
|
|
57
81
|
});
|
|
58
82
|
// 批量删除聊天内容
|
|
59
83
|
const batchDeleteSessionContents = (ids)=>fetch.post(`${apiPrefix}/session_content/batch_delete/`, {
|
|
60
84
|
ids
|
|
61
85
|
}, {
|
|
62
|
-
headers
|
|
86
|
+
headers,
|
|
87
|
+
beforeRequest,
|
|
88
|
+
afterRequest
|
|
63
89
|
});
|
|
90
|
+
// 会话重命名
|
|
91
|
+
const renameSession = (sessionCode)=>fetch.post(`${apiPrefix}/session/${sessionCode}/ai_rename/`, undefined, {
|
|
92
|
+
headers,
|
|
93
|
+
beforeRequest,
|
|
94
|
+
afterRequest
|
|
95
|
+
}).then((res)=>({
|
|
96
|
+
sessionCode: res.session_code,
|
|
97
|
+
sessionName: res.session_name
|
|
98
|
+
}));
|
|
64
99
|
return {
|
|
65
100
|
getAgentInfo,
|
|
66
101
|
clearSession,
|
|
@@ -74,6 +109,7 @@ export const useSessionHttp = (apiPrefix, headers)=>{
|
|
|
74
109
|
plusSessionContent,
|
|
75
110
|
modifySessionContent,
|
|
76
111
|
deleteSessionContent,
|
|
77
|
-
batchDeleteSessionContents
|
|
112
|
+
batchDeleteSessionContents,
|
|
113
|
+
renameSession
|
|
78
114
|
};
|
|
79
115
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { RequestHookData } from '@/types/common';
|
|
1
2
|
export interface IFetchConfig extends RequestInit {
|
|
2
3
|
requestType?: 'json' | 'formData';
|
|
3
4
|
responseType?: 'json' | 'text' | 'formData' | 'file' | 'blob';
|
|
@@ -5,6 +6,8 @@ export interface IFetchConfig extends RequestInit {
|
|
|
5
6
|
signal?: AbortSignal;
|
|
6
7
|
withoutSpace?: boolean;
|
|
7
8
|
noCheckPermission?: boolean;
|
|
9
|
+
beforeRequest?: (data: RequestHookData) => RequestHookData | undefined;
|
|
10
|
+
afterRequest?: (data: RequestHookData, response: Response) => void;
|
|
8
11
|
}
|
|
9
12
|
type HttpMethod = <T>(url: string, payload?: any, config?: IFetchConfig) => Promise<T>;
|
|
10
13
|
interface IHttp {
|
|
@@ -201,17 +201,35 @@ allMethods.forEach((method)=>{
|
|
|
201
201
|
Object.defineProperty(http, method, {
|
|
202
202
|
get () {
|
|
203
203
|
return function() {
|
|
204
|
-
var _ref = _async_to_generator(function*(url,
|
|
205
|
-
|
|
204
|
+
var _ref = _async_to_generator(function*(url, data, config = {}) {
|
|
205
|
+
var _config_beforeRequest;
|
|
206
|
+
// 构造请求数据
|
|
207
|
+
const requestData = {
|
|
208
|
+
url,
|
|
209
|
+
data,
|
|
210
|
+
headers: config.headers
|
|
211
|
+
};
|
|
212
|
+
// 请求拦截器
|
|
213
|
+
const finalRequestData = _object_spread({}, requestData, ((_config_beforeRequest = config.beforeRequest) === null || _config_beforeRequest === void 0 ? void 0 : _config_beforeRequest.call(config, requestData)) || {});
|
|
214
|
+
// 请求参数
|
|
215
|
+
let response;
|
|
216
|
+
let fetchConfig;
|
|
206
217
|
try {
|
|
207
|
-
|
|
208
|
-
|
|
218
|
+
// 发起请求
|
|
219
|
+
fetchConfig = getFetchConfig(method, finalRequestData.data, _object_spread_props(_object_spread({}, config), {
|
|
220
|
+
headers: finalRequestData.headers
|
|
221
|
+
}));
|
|
222
|
+
const fetchUrl = getFetchUrl(finalRequestData.url, method, finalRequestData.data);
|
|
223
|
+
response = yield fetch(fetchUrl, fetchConfig);
|
|
209
224
|
return yield successInterceptor(response, fetchConfig);
|
|
210
225
|
} catch (err) {
|
|
211
226
|
return errorInterceptor(err, fetchConfig);
|
|
227
|
+
} finally{
|
|
228
|
+
var _config_afterRequest;
|
|
229
|
+
(_config_afterRequest = config.afterRequest) === null || _config_afterRequest === void 0 ? void 0 : _config_afterRequest.call(config, requestData, response);
|
|
212
230
|
}
|
|
213
231
|
});
|
|
214
|
-
return function(url,
|
|
232
|
+
return function(url, data) {
|
|
215
233
|
return _ref.apply(this, arguments);
|
|
216
234
|
};
|
|
217
235
|
}();
|