@fv-ui/ai-chat 1.6.2 → 1.7.1
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/README.md +41 -37
- package/dist/index.d.ts +702 -37
- package/dist/style.css +1 -1
- package/es/index.mjs +556 -54
- package/lib/index.js +558 -53
- package/package.json +1 -1
package/es/index.mjs
CHANGED
|
@@ -14,7 +14,7 @@ import 'element-plus/es/components/image-viewer/style/css';
|
|
|
14
14
|
import { shallowRef, inject, computed, provide, defineComponent, ref, onBeforeUnmount, openBlock, createElementBlock, Fragment, createElementVNode, createCommentVNode, createBlock, Teleport, watch, normalizeClass, createTextVNode, toDisplayString, normalizeStyle, renderSlot, unref, renderList, createVNode, isRef, nextTick, onMounted, mergeProps, createSlots, withCtx, Transition, getCurrentInstance, useSlots, normalizeProps, guardReactiveProps, reactive, resolveDynamicComponent, markRaw, h, withModifiers, onActivated } from 'vue';
|
|
15
15
|
import { ElMessage, ElAvatar, ElButton, ElIcon, ElPopover, ElDialog, ElScrollbar, ElDropdown, ElDropdownMenu, ElDropdownItem, ElMessageBox, ElImageViewer, ElTooltip, ElInput, ElSelect, ElOption } from 'element-plus';
|
|
16
16
|
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
|
|
17
|
-
import { ArrowDown, Close, Check, Delete, Microphone, Promotion, VideoPause, Loading, SuccessFilled, CircleCloseFilled, ArrowUp, Picture, Download, Paperclip, RefreshRight, MoreFilled, Search, User, DocumentCopy, Bottom, CopyDocument, FullScreen } from '@element-plus/icons-vue';
|
|
17
|
+
import { ArrowDown, Close, Check, Delete, Microphone, Promotion, VideoPause, Loading, SuccessFilled, WarningFilled, CircleCloseFilled, ArrowUp, Picture, Download, Paperclip, RefreshRight, MoreFilled, Search, User, DocumentCopy, Bottom, CopyDocument, FullScreen } from '@element-plus/icons-vue';
|
|
18
18
|
|
|
19
19
|
/* eslint-disable no-bitwise */
|
|
20
20
|
|
|
@@ -33220,9 +33220,13 @@ const zhCN = {
|
|
|
33220
33220
|
start: "\u5F00\u59CB\u601D\u8003",
|
|
33221
33221
|
thinking: "\u601D\u8003\u4E2D...",
|
|
33222
33222
|
end: "\u601D\u8003\u5B8C\u6210",
|
|
33223
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33224
|
+
interrupted: "\u601D\u8003\u4E2D\u65AD",
|
|
33223
33225
|
error: "\u601D\u8003\u9047\u5230\u95EE\u9898",
|
|
33224
33226
|
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33225
33227
|
endWithTools: "\u601D\u8003\u5B8C\u6210\uFF0C\u4F7F\u7528 {n} \u4E2A\u5DE5\u5177",
|
|
33228
|
+
/** 多 item 总折叠头汇总文案(用户中断态,带工具次数;{n} = 工具步数量) */
|
|
33229
|
+
interruptedWithTools: "\u601D\u8003\u4E2D\u65AD\uFF0C\u4F7F\u7528 {n} \u4E2A\u5DE5\u5177",
|
|
33226
33230
|
/** 思考链 text 步标题(进行中/已完结) */
|
|
33227
33231
|
thinkingItem: "\u6B63\u5728\u601D\u8003",
|
|
33228
33232
|
thoughtDoneItem: "\u601D\u8003\u5B8C\u6210"
|
|
@@ -33341,7 +33345,7 @@ const zhCN = {
|
|
|
33341
33345
|
}
|
|
33342
33346
|
};
|
|
33343
33347
|
|
|
33344
|
-
const
|
|
33348
|
+
const en = {
|
|
33345
33349
|
common: {
|
|
33346
33350
|
copy: "Copy",
|
|
33347
33351
|
delete: "Delete",
|
|
@@ -33364,8 +33368,11 @@ const enUS = {
|
|
|
33364
33368
|
start: "Thinking",
|
|
33365
33369
|
thinking: "Thinking...",
|
|
33366
33370
|
end: "Thought complete",
|
|
33371
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33372
|
+
interrupted: "Thought interrupted",
|
|
33367
33373
|
error: "Something went wrong",
|
|
33368
33374
|
endWithTools: "Thought complete, used {n} tools",
|
|
33375
|
+
interruptedWithTools: "Thought interrupted, used {n} tools",
|
|
33369
33376
|
thinkingItem: "Thinking",
|
|
33370
33377
|
thoughtDoneItem: "Thought complete"
|
|
33371
33378
|
},
|
|
@@ -33473,6 +33480,450 @@ const enUS = {
|
|
|
33473
33480
|
}
|
|
33474
33481
|
};
|
|
33475
33482
|
|
|
33483
|
+
const ko = {
|
|
33484
|
+
common: {
|
|
33485
|
+
copy: "\uBCF5\uC0AC",
|
|
33486
|
+
delete: "\uC0AD\uC81C",
|
|
33487
|
+
confirm: "\uD655\uC778",
|
|
33488
|
+
cancel: "\uCDE8\uC18C",
|
|
33489
|
+
retry: "\uB2E4\uC2DC \uC804\uC1A1",
|
|
33490
|
+
close: "\uB2EB\uAE30",
|
|
33491
|
+
preview: "\uBBF8\uB9AC\uBCF4\uAE30",
|
|
33492
|
+
clear: "\uC9C0\uC6B0\uAE30",
|
|
33493
|
+
stop: "\uC911\uC9C0",
|
|
33494
|
+
send: "\uBCF4\uB0B4\uAE30",
|
|
33495
|
+
download: "\uB2E4\uC6B4\uB85C\uB4DC",
|
|
33496
|
+
fullscreen: "\uC804\uCCB4 \uD654\uBA74",
|
|
33497
|
+
collapse: "\uC811\uAE30",
|
|
33498
|
+
expand: "\uD3BC\uCE58\uAE30",
|
|
33499
|
+
/** 复制成功提示(表格工具栏等) */
|
|
33500
|
+
copied: "\uBCF5\uC0AC\uB428"
|
|
33501
|
+
},
|
|
33502
|
+
thinking: {
|
|
33503
|
+
start: "\uC0DD\uAC01 \uC2DC\uC791",
|
|
33504
|
+
thinking: "\uC0DD\uAC01 \uC911...",
|
|
33505
|
+
end: "\uC0DD\uAC01 \uC644\uB8CC",
|
|
33506
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33507
|
+
interrupted: "\uC0DD\uAC01 \uC911\uB2E8",
|
|
33508
|
+
error: "\uC0DD\uAC01 \uC911 \uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC5B4\uC694",
|
|
33509
|
+
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33510
|
+
endWithTools: "\uC0DD\uAC01 \uC644\uB8CC, \uB3C4\uAD6C {n}\uAC1C \uC0AC\uC6A9",
|
|
33511
|
+
/** 多 item 总折叠头汇总文案(用户中断态,带工具次数;{n} = 工具步数量) */
|
|
33512
|
+
interruptedWithTools: "\uC0DD\uAC01 \uC911\uB2E8, \uB3C4\uAD6C {n}\uAC1C \uC0AC\uC6A9",
|
|
33513
|
+
/** 思考链 text 步标题(进行中/已完结) */
|
|
33514
|
+
thinkingItem: "\uC0DD\uAC01\uD558\uB294 \uC911",
|
|
33515
|
+
thoughtDoneItem: "\uC0DD\uAC01 \uC644\uB8CC"
|
|
33516
|
+
},
|
|
33517
|
+
welcome: {
|
|
33518
|
+
greetingPrefix: "\uC548\uB155\uD558\uC138\uC694, \uC800\uB294 ",
|
|
33519
|
+
greetingName: "Gizmo",
|
|
33520
|
+
description: "\uB370\uC774\uD130 \uC870\uD68C, \uBB38\uC81C \uBD84\uC11D, \uBCF4\uACE0\uC11C \uC0DD\uC131, \uC2DC\uC2A4\uD15C \uC791\uC5C5 \uC2E4\uD589\uC744 \uB3C4\uC640\uB4DC\uB824 \uC0DD\uC0B0 \uAD00\uB9AC\uB97C \uB354 \uD6A8\uC728\uC801\uC73C\uB85C \uB9CC\uB4E4\uC5B4\uC694."
|
|
33521
|
+
},
|
|
33522
|
+
sender: {
|
|
33523
|
+
clear: "\uC9C0\uC6B0\uAE30",
|
|
33524
|
+
stop: "\uC911\uC9C0",
|
|
33525
|
+
send: "\uBCF4\uB0B4\uAE30",
|
|
33526
|
+
speech: "\uC74C\uC131 \uC785\uB825",
|
|
33527
|
+
recordCancel: "\uB179\uC74C \uCDE8\uC18C",
|
|
33528
|
+
recordConfirm: "\uB179\uC74C \uD655\uC778",
|
|
33529
|
+
micUnavailable: "\uB9C8\uC774\uD06C\uC5D0 \uC811\uADFC\uD560 \uC218 \uC5C6\uC5B4\uC694",
|
|
33530
|
+
/** 输入框占位文案(placeholder prop 未传时的默认) */
|
|
33531
|
+
inputPlaceholder: "\uC9C8\uBB38\uC744 \uC785\uB825\uD558\uC138\uC694. \uB370\uC774\uD130 \uC870\uD68C, \uBB38\uC81C \uBD84\uC11D, \uBCF4\uACE0\uC11C \uC0DD\uC131\uC774 \uAC00\uB2A5\uD574\uC694\u2026"
|
|
33532
|
+
},
|
|
33533
|
+
editorSender: {
|
|
33534
|
+
clear: "\uC9C0\uC6B0\uAE30",
|
|
33535
|
+
stop: "\uC911\uC9C0",
|
|
33536
|
+
send: "\uBCF4\uB0B4\uAE30",
|
|
33537
|
+
inputPlaceholder: "\uC785\uB825\uD558\uC138\uC694",
|
|
33538
|
+
selectTagTitle: "\uD0DC\uADF8 \uC120\uD0DD",
|
|
33539
|
+
loading: "\uBD88\uB7EC\uC624\uB294 \uC911\u2026",
|
|
33540
|
+
tagTip: "\uB0B4\uC6A9\uC744 \uC785\uB825\uD55C \uD6C4 Enter \uD0A4\uB85C \uD655\uC778\uD558\uC138\uC694"
|
|
33541
|
+
},
|
|
33542
|
+
attachments: {
|
|
33543
|
+
add: "\uCCA8\uBD80\uD30C\uC77C \uCD94\uAC00",
|
|
33544
|
+
retry: "\uB2E4\uC2DC \uC804\uC1A1",
|
|
33545
|
+
/** 上传中状态角标文案(loading 态 files 卡片辅助提示) */
|
|
33546
|
+
uploading: "\uC5C5\uB85C\uB4DC \uC911\u2026"
|
|
33547
|
+
},
|
|
33548
|
+
filesCard: {
|
|
33549
|
+
remove: "\uC0AD\uC81C",
|
|
33550
|
+
/** 下载按钮(onDownload 注入时渲染,aria 标签) */
|
|
33551
|
+
download: "\uB2E4\uC6B4\uB85C\uB4DC"
|
|
33552
|
+
},
|
|
33553
|
+
conversations: {
|
|
33554
|
+
menuLabel: "\uB300\uD654 \uC791\uC5C5",
|
|
33555
|
+
rename: "\uC774\uB984 \uBC14\uAFB8\uAE30",
|
|
33556
|
+
delete: "\uC0AD\uC81C",
|
|
33557
|
+
renameTitle: "\uB300\uD654 \uC774\uB984 \uBC14\uAFB8\uAE30",
|
|
33558
|
+
renamePrompt: "\uC0C8 \uB300\uD654 \uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694",
|
|
33559
|
+
renamePlaceholder: "\uC774\uB984\uC744 \uC785\uB825\uD558\uC138\uC694",
|
|
33560
|
+
deleteTitle: "\uB300\uD654 \uC0AD\uC81C",
|
|
33561
|
+
deleteConfirm: "\uB300\uD654 \u300C{label}\u300D\uC744(\uB97C) \uC0AD\uC81C\uD560\uAE4C\uC694? \uC0AD\uC81C \uD6C4 \uBCF5\uAD6C\uD560 \uC218 \uC5C6\uC5B4\uC694."
|
|
33562
|
+
},
|
|
33563
|
+
scroll: {
|
|
33564
|
+
toBottom: "\uB9E8 \uC544\uB798\uB85C \uC2A4\uD06C\uB864"
|
|
33565
|
+
},
|
|
33566
|
+
aiChat: {
|
|
33567
|
+
modelPlaceholder: "\uBAA8\uB378",
|
|
33568
|
+
adapterMissing: "adapter \uB610\uB294 baseURL\uC774 \uC124\uC815\uB418\uC9C0 \uC54A\uC558\uC5B4\uC694",
|
|
33569
|
+
generateFailed: "\uC0DD\uC131 \uC2E4\uD328",
|
|
33570
|
+
exportUser: "\uB098",
|
|
33571
|
+
exportAssistant: "\uC5B4\uC2DC\uC2A4\uD134\uD2B8"
|
|
33572
|
+
},
|
|
33573
|
+
aiMessage: {
|
|
33574
|
+
copy: "\uBCF5\uC0AC",
|
|
33575
|
+
regenerate: "\uB2E4\uC2DC \uC0DD\uC131",
|
|
33576
|
+
prevBranch: "\uC774\uC804 \uBD84\uAE30",
|
|
33577
|
+
nextBranch: "\uB2E4\uC74C \uBD84\uAE30",
|
|
33578
|
+
defaultUserName: "\uB098",
|
|
33579
|
+
defaultAssistantName: "Gizmo",
|
|
33580
|
+
querying: "\uC870\uD68C \uC911",
|
|
33581
|
+
queried: "\uC870\uD68C \uC644\uB8CC",
|
|
33582
|
+
generateFailed: "\uC0DD\uC131 \uC2E4\uD328",
|
|
33583
|
+
/** 追问建议 chips 区 aria 标签 */
|
|
33584
|
+
followups: "\uD6C4\uC18D \uC9C8\uBB38 \uCD94\uCC9C",
|
|
33585
|
+
/** 追问建议区标题(list 样式:分隔线下方灰色标题) */
|
|
33586
|
+
followupsTitle: "\uD6C4\uC18D \uC9C8\uBB38",
|
|
33587
|
+
loadingPhrases: ["\uC0DD\uAC01 \uC911\u2026", "\uC0DD\uAC01\uC744 \uC815\uB9AC\uD558\uB294 \uC911\u2026", "\uB2F5\uBCC0\uC744 \uC0DD\uC131\uD558\uB294 \uC911\u2026"],
|
|
33588
|
+
/** 消息评价(点赞/点踩) */
|
|
33589
|
+
feedback: {
|
|
33590
|
+
like: "\uC88B\uC544\uC694",
|
|
33591
|
+
dislike: "\uC2EB\uC5B4\uC694",
|
|
33592
|
+
/** 点踩弹窗标题({name} = AI 名称,渲染时替换为 assistantName,空串回落 defaultAssistantName) */
|
|
33593
|
+
dislikeTitle: "\uC8C4\uC1A1\uD574\uC694, {name}\uC5D0\uAC8C \uC5B4\uB5A4 \uC810\uC774 \uC88B\uC9C0 \uC54A\uC558\uB294\uC9C0 \uC54C\uB824\uC8FC\uC138\uC694",
|
|
33594
|
+
/** 点踩附言输入占位(选填 ≤500 字) */
|
|
33595
|
+
dislikePlaceholder: "\uC0DD\uAC01\uC744 \uC790\uC720\uB86D\uAC8C \uB0A8\uACA8\uC8FC\uC138\uC694",
|
|
33596
|
+
/** 附言提交按钮(不带原因直接点踩) */
|
|
33597
|
+
submit: "\uC81C\uCD9C",
|
|
33598
|
+
/** 附言跳过按钮 */
|
|
33599
|
+
skip: "\uAC74\uB108\uB6F0\uAE30",
|
|
33600
|
+
/** 评价提交失败(钩子 reject/返回错误文案时 toast) */
|
|
33601
|
+
failed: "\uD3C9\uAC00 \uC81C\uCD9C\uC5D0 \uC2E4\uD328\uD588\uC5B4\uC694",
|
|
33602
|
+
/** 已取消评价 toast(CLEAR 成功后提示) */
|
|
33603
|
+
cleared: "\uD3C9\uAC00\uAC00 \uCDE8\uC18C\uB418\uC5C8\uC5B4\uC694"
|
|
33604
|
+
}
|
|
33605
|
+
},
|
|
33606
|
+
aiArtifacts: {
|
|
33607
|
+
copy: "\uBCF5\uC0AC",
|
|
33608
|
+
download: "\uB2E4\uC6B4\uB85C\uB4DC",
|
|
33609
|
+
fullscreen: "\uC804\uCCB4 \uD654\uBA74",
|
|
33610
|
+
close: "\uB2EB\uAE30"
|
|
33611
|
+
},
|
|
33612
|
+
chat: {
|
|
33613
|
+
fileTag: "[\uCCA8\uBD80\uD30C\uC77C] {name}",
|
|
33614
|
+
fileImageTag: " (\uC774\uBBF8\uC9C0)",
|
|
33615
|
+
filesSystemPrompt: "\uC0AC\uC6A9\uC790\uAC00 \uBA54\uC2DC\uC9C0\uC640 \uD568\uAED8 \uB2E4\uC74C \uD30C\uC77C\uC744 \uBCF4\uB0C8\uC5B4\uC694:\n{files}",
|
|
33616
|
+
toolDuration: "\uC18C\uC694 \uC2DC\uAC04 {s}",
|
|
33617
|
+
continuePrompt: "\uC704 \uB0B4\uC6A9\uC744 \uBC14\uD0D5\uC73C\uB85C \uB2F5\uBCC0\uC744 \uC774\uC5B4\uC11C \uC644\uC131\uD558\uC138\uC694. \uC774\uBBF8 \uC788\uB294 \uB0B4\uC6A9\uC740 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694."
|
|
33618
|
+
},
|
|
33619
|
+
errors: {
|
|
33620
|
+
requestFailed: "\uC694\uCCAD \uC2E4\uD328",
|
|
33621
|
+
sessionIdMissing: "sessionId\uAC00 \uC5C6\uC5B4\uC694(\uC138\uC158\uC774 \uC0DD\uC131\uB418\uC9C0 \uC54A\uC558\uAC70\uB098 \uC120\uD0DD\uB418\uC9C0 \uC54A\uC558\uC5B4\uC694)",
|
|
33622
|
+
noBody: "\uC751\uB2F5\uC5D0 body\uAC00 \uC5C6\uC5B4\uC694",
|
|
33623
|
+
generateFailed: "\uC0DD\uC131 \uC2E4\uD328",
|
|
33624
|
+
recordUnsupported: "\uD604\uC7AC \uD658\uACBD\uC5D0\uC11C\uB294 \uC624\uB514\uC624 \uB179\uC74C\uC744 \uC9C0\uC6D0\uD558\uC9C0 \uC54A\uC544\uC694",
|
|
33625
|
+
speechError: "\uC74C\uC131 \uC778\uC2DD \uC624\uB958: {error}",
|
|
33626
|
+
/** 附件类型拦截提示({name} = 文件名;accept 白名单外文件入列前 toast) */
|
|
33627
|
+
attachmentRejected: "\uC9C0\uC6D0\uD558\uC9C0 \uC54A\uB294 \uD30C\uC77C \uD615\uC2DD\uC774\uB77C \uC5C5\uB85C\uB4DC\uD560 \uC218 \uC5C6\uC5B4\uC694: {name}"
|
|
33628
|
+
}
|
|
33629
|
+
};
|
|
33630
|
+
|
|
33631
|
+
const vi = {
|
|
33632
|
+
common: {
|
|
33633
|
+
copy: "Sao ch\xE9p",
|
|
33634
|
+
delete: "X\xF3a",
|
|
33635
|
+
confirm: "OK",
|
|
33636
|
+
cancel: "H\u1EE7y",
|
|
33637
|
+
retry: "T\u1EA3i l\u1EA1i",
|
|
33638
|
+
close: "\u0110\xF3ng",
|
|
33639
|
+
preview: "Xem tr\u01B0\u1EDBc",
|
|
33640
|
+
clear: "X\xF3a h\u1EBFt",
|
|
33641
|
+
stop: "D\u1EEBng",
|
|
33642
|
+
send: "G\u1EEDi",
|
|
33643
|
+
download: "T\u1EA3i xu\u1ED1ng",
|
|
33644
|
+
fullscreen: "To\xE0n m\xE0n h\xECnh",
|
|
33645
|
+
collapse: "Thu g\u1ECDn",
|
|
33646
|
+
expand: "M\u1EDF r\u1ED9ng",
|
|
33647
|
+
/** 复制成功提示(表格工具栏等) */
|
|
33648
|
+
copied: "\u0110\xE3 sao ch\xE9p"
|
|
33649
|
+
},
|
|
33650
|
+
thinking: {
|
|
33651
|
+
start: "B\u1EAFt \u0111\u1EA7u suy lu\u1EADn",
|
|
33652
|
+
thinking: "\u0110ang suy lu\u1EADn...",
|
|
33653
|
+
end: "Suy lu\u1EADn xong",
|
|
33654
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33655
|
+
interrupted: "Suy lu\u1EADn b\u1ECB gi\xE1n \u0111o\u1EA1n",
|
|
33656
|
+
error: "Suy lu\u1EADn g\u1EB7p l\u1ED7i",
|
|
33657
|
+
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33658
|
+
endWithTools: "Suy lu\u1EADn xong, \u0111\xE3 d\xF9ng {n} c\xF4ng c\u1EE5",
|
|
33659
|
+
/** 多 item 总折叠头汇总文案(用户中断态,带工具次数;{n} = 工具步数量) */
|
|
33660
|
+
interruptedWithTools: "Suy lu\u1EADn b\u1ECB gi\xE1n \u0111o\u1EA1n, \u0111\xE3 d\xF9ng {n} c\xF4ng c\u1EE5",
|
|
33661
|
+
/** 思考链 text 步标题(进行中/已完结) */
|
|
33662
|
+
thinkingItem: "\u0110ang suy lu\u1EADn",
|
|
33663
|
+
thoughtDoneItem: "\u0110\xE3 suy lu\u1EADn xong"
|
|
33664
|
+
},
|
|
33665
|
+
welcome: {
|
|
33666
|
+
greetingPrefix: "Xin ch\xE0o, t\xF4i l\xE0 ",
|
|
33667
|
+
greetingName: "Gizmo",
|
|
33668
|
+
description: "T\xF4i c\xF3 th\u1EC3 gi\xFAp b\u1EA1n truy v\u1EA5n d\u1EEF li\u1EC7u, ph\xE2n t\xEDch v\u1EA5n \u0111\u1EC1, t\u1EA1o b\xE1o c\xE1o v\xE0 thao t\xE1c h\u1EC7 th\u1ED1ng, gi\xFAp vi\u1EC7c qu\u1EA3n l\xFD s\u1EA3n xu\u1EA5t hi\u1EC7u qu\u1EA3 h\u01A1n."
|
|
33669
|
+
},
|
|
33670
|
+
sender: {
|
|
33671
|
+
clear: "X\xF3a h\u1EBFt",
|
|
33672
|
+
stop: "D\u1EEBng",
|
|
33673
|
+
send: "G\u1EEDi",
|
|
33674
|
+
speech: "Nh\u1EADp b\u1EB1ng gi\u1ECDng n\xF3i",
|
|
33675
|
+
recordCancel: "H\u1EE7y ghi \xE2m",
|
|
33676
|
+
recordConfirm: "X\xE1c nh\u1EADn ghi \xE2m",
|
|
33677
|
+
micUnavailable: "Kh\xF4ng th\u1EC3 truy c\u1EADp micr\xF4",
|
|
33678
|
+
/** 输入框占位文案(placeholder prop 未传时的默认) */
|
|
33679
|
+
inputPlaceholder: "Nh\u1EADp c\xE2u h\u1ECFi c\u1EE7a b\u1EA1n \u2014 truy v\u1EA5n d\u1EEF li\u1EC7u, ph\xE2n t\xEDch v\u1EA5n \u0111\u1EC1 ho\u1EB7c t\u1EA1o b\xE1o c\xE1o\u2026"
|
|
33680
|
+
},
|
|
33681
|
+
editorSender: {
|
|
33682
|
+
clear: "X\xF3a h\u1EBFt",
|
|
33683
|
+
stop: "D\u1EEBng",
|
|
33684
|
+
send: "G\u1EEDi",
|
|
33685
|
+
inputPlaceholder: "Nh\u1EADp n\u1ED9i dung...",
|
|
33686
|
+
selectTagTitle: "Ch\u1ECDn nh\xE3n",
|
|
33687
|
+
loading: "\u0110ang t\u1EA3i...",
|
|
33688
|
+
tagTip: "Nh\u1EADp n\u1ED9i dung r\u1ED3i nh\u1EA5n Enter \u0111\u1EC3 x\xE1c nh\u1EADn"
|
|
33689
|
+
},
|
|
33690
|
+
attachments: {
|
|
33691
|
+
add: "Th\xEAm t\u1EC7p \u0111\xEDnh k\xE8m",
|
|
33692
|
+
retry: "T\u1EA3i l\u1EA1i",
|
|
33693
|
+
/** 上传中状态角标文案(loading 态 files 卡片辅助提示) */
|
|
33694
|
+
uploading: "\u0110ang t\u1EA3i l\xEAn\u2026"
|
|
33695
|
+
},
|
|
33696
|
+
filesCard: {
|
|
33697
|
+
remove: "X\xF3a",
|
|
33698
|
+
/** 下载按钮(onDownload 注入时渲染,aria 标签) */
|
|
33699
|
+
download: "T\u1EA3i xu\u1ED1ng"
|
|
33700
|
+
},
|
|
33701
|
+
conversations: {
|
|
33702
|
+
menuLabel: "Thao t\xE1c h\u1ED9i tho\u1EA1i",
|
|
33703
|
+
rename: "\u0110\u1ED5i t\xEAn",
|
|
33704
|
+
delete: "X\xF3a",
|
|
33705
|
+
renameTitle: "\u0110\u1ED5i t\xEAn h\u1ED9i tho\u1EA1i",
|
|
33706
|
+
renamePrompt: "Nh\u1EADp t\xEAn m\u1EDBi cho h\u1ED9i tho\u1EA1i",
|
|
33707
|
+
renamePlaceholder: "Nh\u1EADp t\xEAn",
|
|
33708
|
+
deleteTitle: "X\xF3a h\u1ED9i tho\u1EA1i",
|
|
33709
|
+
deleteConfirm: 'X\xF3a h\u1ED9i tho\u1EA1i "{label}"? Kh\xF4ng th\u1EC3 ho\xE0n t\xE1c sau khi x\xF3a.'
|
|
33710
|
+
},
|
|
33711
|
+
scroll: {
|
|
33712
|
+
toBottom: "Cu\u1ED9n xu\u1ED1ng cu\u1ED1i"
|
|
33713
|
+
},
|
|
33714
|
+
aiChat: {
|
|
33715
|
+
modelPlaceholder: "M\xF4 h\xECnh",
|
|
33716
|
+
adapterMissing: "Ch\u01B0a c\u1EA5u h\xECnh adapter ho\u1EB7c baseURL",
|
|
33717
|
+
generateFailed: "T\u1EA1o n\u1ED9i dung th\u1EA5t b\u1EA1i",
|
|
33718
|
+
exportUser: "B\u1EA1n",
|
|
33719
|
+
exportAssistant: "Tr\u1EE3 l\xFD"
|
|
33720
|
+
},
|
|
33721
|
+
aiMessage: {
|
|
33722
|
+
copy: "Sao ch\xE9p",
|
|
33723
|
+
regenerate: "T\u1EA1o l\u1EA1i",
|
|
33724
|
+
prevBranch: "Nh\xE1nh tr\u01B0\u1EDBc",
|
|
33725
|
+
nextBranch: "Nh\xE1nh sau",
|
|
33726
|
+
defaultUserName: "B\u1EA1n",
|
|
33727
|
+
defaultAssistantName: "Gizmo",
|
|
33728
|
+
querying: "\u0110ang truy v\u1EA5n",
|
|
33729
|
+
queried: "\u0110\xE3 truy v\u1EA5n",
|
|
33730
|
+
generateFailed: "T\u1EA1o n\u1ED9i dung th\u1EA5t b\u1EA1i",
|
|
33731
|
+
/** 追问建议 chips 区 aria 标签 */
|
|
33732
|
+
followups: "G\u1EE3i \xFD c\xE2u h\u1ECFi ti\u1EBFp theo",
|
|
33733
|
+
/** 追问建议区标题(list 样式:分隔线下方灰色标题) */
|
|
33734
|
+
followupsTitle: "H\u1ECFi ti\u1EBFp",
|
|
33735
|
+
loadingPhrases: ["\u0110ang suy lu\u1EADn\u2026", "\u0110ang s\u1EAFp x\u1EBFp \xFD t\u01B0\u1EDFng\u2026", "\u0110ang t\u1EA1o c\xE2u tr\u1EA3 l\u1EDDi\u2026"],
|
|
33736
|
+
/** 消息评价(点赞/点踩) */
|
|
33737
|
+
feedback: {
|
|
33738
|
+
like: "Th\xEDch",
|
|
33739
|
+
dislike: "Kh\xF4ng th\xEDch",
|
|
33740
|
+
/** 点踩弹窗标题({name} = AI 名称,渲染时替换为 assistantName,空串回落 defaultAssistantName) */
|
|
33741
|
+
dislikeTitle: "Xin l\u1ED7i \u2014 h\xE3y cho {name} bi\u1EBFt \u0111i\u1EC1u g\xEC ch\u01B0a t\u1ED1t",
|
|
33742
|
+
/** 点踩附言输入占位(选填 ≤500 字) */
|
|
33743
|
+
dislikePlaceholder: "M\u1EDDi b\u1EA1n chia s\u1EBB suy ngh\u0129",
|
|
33744
|
+
/** 附言提交按钮(不带原因直接点踩) */
|
|
33745
|
+
submit: "G\u1EEDi",
|
|
33746
|
+
/** 附言跳过按钮 */
|
|
33747
|
+
skip: "B\u1ECF qua",
|
|
33748
|
+
/** 评价提交失败(钩子 reject/返回错误文案时 toast) */
|
|
33749
|
+
failed: "G\u1EEDi \u0111\xE1nh gi\xE1 th\u1EA5t b\u1EA1i",
|
|
33750
|
+
/** 已取消评价 toast(CLEAR 成功后提示) */
|
|
33751
|
+
cleared: "\u0110\xE3 h\u1EE7y \u0111\xE1nh gi\xE1"
|
|
33752
|
+
}
|
|
33753
|
+
},
|
|
33754
|
+
aiArtifacts: {
|
|
33755
|
+
copy: "Sao ch\xE9p",
|
|
33756
|
+
download: "T\u1EA3i xu\u1ED1ng",
|
|
33757
|
+
fullscreen: "To\xE0n m\xE0n h\xECnh",
|
|
33758
|
+
close: "\u0110\xF3ng"
|
|
33759
|
+
},
|
|
33760
|
+
chat: {
|
|
33761
|
+
fileTag: "[T\u1EC7p] {name}",
|
|
33762
|
+
fileImageTag: " (\u1EA3nh)",
|
|
33763
|
+
filesSystemPrompt: "Ng\u01B0\u1EDDi d\xF9ng \u0111\xE3 g\u1EEDi k\xE8m c\xE1c t\u1EC7p sau v\u1EDBi tin nh\u1EAFn:\n{files}",
|
|
33764
|
+
toolDuration: "M\u1EA5t {s}",
|
|
33765
|
+
continuePrompt: "H\xE3y ti\u1EBFp t\u1EE5c ho\xE0n th\xE0nh c\xE2u tr\u1EA3 l\u1EDDi d\u1EF1a tr\xEAn n\u1ED9i dung tr\xEAn, kh\xF4ng l\u1EB7p l\u1EA1i n\u1ED9i dung \u0111\xE3 c\xF3."
|
|
33766
|
+
},
|
|
33767
|
+
errors: {
|
|
33768
|
+
requestFailed: "Y\xEAu c\u1EA7u th\u1EA5t b\u1EA1i",
|
|
33769
|
+
sessionIdMissing: "Thi\u1EBFu sessionId (phi\xEAn ch\u01B0a \u0111\u01B0\u1EE3c t\u1EA1o ho\u1EB7c ch\u01B0a \u0111\u01B0\u1EE3c ch\u1ECDn)",
|
|
33770
|
+
noBody: "Ph\u1EA3n h\u1ED3i kh\xF4ng c\xF3 body",
|
|
33771
|
+
generateFailed: "T\u1EA1o n\u1ED9i dung th\u1EA5t b\u1EA1i",
|
|
33772
|
+
recordUnsupported: "M\xF4i tr\u01B0\u1EDDng hi\u1EC7n t\u1EA1i kh\xF4ng h\u1ED7 tr\u1EE3 ghi \xE2m",
|
|
33773
|
+
speechError: "L\u1ED7i nh\u1EADn d\u1EA1ng gi\u1ECDng n\xF3i: {error}",
|
|
33774
|
+
/** 附件类型拦截提示({name} = 文件名;accept 白名单外文件入列前 toast) */
|
|
33775
|
+
attachmentRejected: "Kh\xF4ng h\u1ED7 tr\u1EE3 lo\u1EA1i t\u1EC7p n\xE0y, kh\xF4ng th\u1EC3 t\u1EA3i l\xEAn: {name}"
|
|
33776
|
+
}
|
|
33777
|
+
};
|
|
33778
|
+
|
|
33779
|
+
const zhHK = {
|
|
33780
|
+
common: {
|
|
33781
|
+
copy: "\u8907\u88FD",
|
|
33782
|
+
delete: "\u522A\u9664",
|
|
33783
|
+
confirm: "\u78BA\u5B9A",
|
|
33784
|
+
cancel: "\u53D6\u6D88",
|
|
33785
|
+
retry: "\u91CD\u65B0\u4E0A\u8F09",
|
|
33786
|
+
close: "\u95DC\u9589",
|
|
33787
|
+
preview: "\u9810\u89BD",
|
|
33788
|
+
clear: "\u6E05\u7A7A",
|
|
33789
|
+
stop: "\u505C\u6B62",
|
|
33790
|
+
send: "\u50B3\u9001",
|
|
33791
|
+
download: "\u4E0B\u8F09",
|
|
33792
|
+
fullscreen: "\u5168\u87A2\u5E55",
|
|
33793
|
+
collapse: "\u6536\u8D77",
|
|
33794
|
+
expand: "\u5C55\u958B",
|
|
33795
|
+
/** 复制成功提示(表格工具栏等) */
|
|
33796
|
+
copied: "\u5DF2\u8907\u88FD"
|
|
33797
|
+
},
|
|
33798
|
+
thinking: {
|
|
33799
|
+
start: "\u958B\u59CB\u601D\u8003",
|
|
33800
|
+
thinking: "\u601D\u8003\u4E2D...",
|
|
33801
|
+
end: "\u601D\u8003\u5B8C\u6210",
|
|
33802
|
+
/** 用戶中斷(useChat.stop()):思考鏈頭文案,與 error(真實出錯)區分 */
|
|
33803
|
+
interrupted: "\u601D\u8003\u4E2D\u65B7",
|
|
33804
|
+
error: "\u601D\u8003\u9047\u5230\u554F\u984C",
|
|
33805
|
+
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33806
|
+
endWithTools: "\u601D\u8003\u5B8C\u6210\uFF0C\u4F7F\u7528\u4E86 {n} \u500B\u5DE5\u5177",
|
|
33807
|
+
/** 多 item 总折叠头汇总文案(用戶中斷態,带工具次数;{n} = 工具步数量) */
|
|
33808
|
+
interruptedWithTools: "\u601D\u8003\u4E2D\u65B7\uFF0C\u4F7F\u7528\u4E86 {n} \u500B\u5DE5\u5177",
|
|
33809
|
+
/** 思考链 text 步标题(进行中/已完结) */
|
|
33810
|
+
thinkingItem: "\u6B63\u5728\u601D\u8003",
|
|
33811
|
+
thoughtDoneItem: "\u601D\u8003\u5B8C\u6210"
|
|
33812
|
+
},
|
|
33813
|
+
welcome: {
|
|
33814
|
+
greetingPrefix: "\u4F60\u597D\uFF0C\u6211\u662F ",
|
|
33815
|
+
greetingName: "Gizmo",
|
|
33816
|
+
description: "\u6211\u53EF\u4EE5\u5E6B\u4F60\u67E5\u8A62\u8CC7\u6599\u3001\u5206\u6790\u554F\u984C\u3001\u7522\u751F\u5831\u8868\uFF0C\u4EE5\u53CA\u57F7\u884C\u7CFB\u7D71\u64CD\u4F5C\uFF0C\u4EE4\u751F\u7522\u7BA1\u7406\u66F4\u6709\u6548\u7387\u3002"
|
|
33817
|
+
},
|
|
33818
|
+
sender: {
|
|
33819
|
+
clear: "\u6E05\u7A7A",
|
|
33820
|
+
stop: "\u505C\u6B62",
|
|
33821
|
+
send: "\u50B3\u9001",
|
|
33822
|
+
speech: "\u8A9E\u97F3\u8F38\u5165",
|
|
33823
|
+
recordCancel: "\u53D6\u6D88\u9304\u97F3",
|
|
33824
|
+
recordConfirm: "\u78BA\u8A8D\u9304\u97F3",
|
|
33825
|
+
micUnavailable: "\u7121\u6CD5\u5B58\u53D6\u9EA5\u514B\u98A8",
|
|
33826
|
+
/** 输入框占位文案(placeholder prop 未传时的默认) */
|
|
33827
|
+
inputPlaceholder: "\u8F38\u5165\u4F60\u7684\u554F\u984C\uFF0C\u67E5\u8A62\u8CC7\u6599\u3001\u5206\u6790\u554F\u984C\u6216\u7522\u751F\u5831\u8868\u2026"
|
|
33828
|
+
},
|
|
33829
|
+
editorSender: {
|
|
33830
|
+
clear: "\u6E05\u7A7A",
|
|
33831
|
+
stop: "\u505C\u6B62",
|
|
33832
|
+
send: "\u50B3\u9001",
|
|
33833
|
+
inputPlaceholder: "\u8ACB\u8F38\u5165",
|
|
33834
|
+
selectTagTitle: "\u9078\u64C7\u6A19\u7C64",
|
|
33835
|
+
loading: "\u8F09\u5165\u4E2D\u2026",
|
|
33836
|
+
tagTip: "\u586B\u5BEB\u5167\u5BB9\u5F8C\u6309 Enter \u78BA\u8A8D"
|
|
33837
|
+
},
|
|
33838
|
+
attachments: {
|
|
33839
|
+
add: "\u65B0\u589E\u9644\u4EF6",
|
|
33840
|
+
retry: "\u91CD\u65B0\u4E0A\u8F09",
|
|
33841
|
+
/** 上传中状态角标文案(loading 态 files 卡片辅助提示) */
|
|
33842
|
+
uploading: "\u4E0A\u8F09\u4E2D\u2026"
|
|
33843
|
+
},
|
|
33844
|
+
filesCard: {
|
|
33845
|
+
remove: "\u522A\u9664",
|
|
33846
|
+
/** 下载按钮(onDownload 注入时渲染,aria 标签) */
|
|
33847
|
+
download: "\u4E0B\u8F09"
|
|
33848
|
+
},
|
|
33849
|
+
conversations: {
|
|
33850
|
+
menuLabel: "\u5C0D\u8A71\u64CD\u4F5C",
|
|
33851
|
+
rename: "\u91CD\u65B0\u547D\u540D",
|
|
33852
|
+
delete: "\u522A\u9664",
|
|
33853
|
+
renameTitle: "\u91CD\u65B0\u547D\u540D\u5C0D\u8A71",
|
|
33854
|
+
renamePrompt: "\u8ACB\u8F38\u5165\u65B0\u7684\u5C0D\u8A71\u540D\u7A31",
|
|
33855
|
+
renamePlaceholder: "\u8ACB\u8F38\u5165\u540D\u7A31",
|
|
33856
|
+
deleteTitle: "\u522A\u9664\u5C0D\u8A71",
|
|
33857
|
+
deleteConfirm: "\u78BA\u5B9A\u522A\u9664\u5C0D\u8A71\u300C{label}\u300D\u55CE?\u522A\u9664\u5F8C\u7121\u6CD5\u5FA9\u539F\u3002"
|
|
33858
|
+
},
|
|
33859
|
+
scroll: {
|
|
33860
|
+
toBottom: "\u6372\u52D5\u5230\u5E95\u90E8"
|
|
33861
|
+
},
|
|
33862
|
+
aiChat: {
|
|
33863
|
+
modelPlaceholder: "\u6A21\u578B",
|
|
33864
|
+
adapterMissing: "\u672A\u914D\u7F6E adapter \u6216 baseURL",
|
|
33865
|
+
generateFailed: "\u7522\u751F\u5931\u6557",
|
|
33866
|
+
exportUser: "\u4F60",
|
|
33867
|
+
exportAssistant: "\u52A9\u7406"
|
|
33868
|
+
},
|
|
33869
|
+
aiMessage: {
|
|
33870
|
+
copy: "\u8907\u88FD",
|
|
33871
|
+
regenerate: "\u91CD\u65B0\u7522\u751F",
|
|
33872
|
+
prevBranch: "\u4E0A\u4E00\u5206\u652F",
|
|
33873
|
+
nextBranch: "\u4E0B\u4E00\u5206\u652F",
|
|
33874
|
+
defaultUserName: "\u4F60",
|
|
33875
|
+
defaultAssistantName: "Gizmo",
|
|
33876
|
+
querying: "\u6B63\u5728\u67E5\u8A62",
|
|
33877
|
+
queried: "\u5DF2\u67E5\u8A62",
|
|
33878
|
+
generateFailed: "\u7522\u751F\u5931\u6557",
|
|
33879
|
+
/** 追问建议 chips 区 aria 标签 */
|
|
33880
|
+
followups: "\u5F8C\u7E8C\u554F\u984C\u5EFA\u8B70",
|
|
33881
|
+
/** 追问建议区标题(list 样式:分隔线下方灰色标题) */
|
|
33882
|
+
followupsTitle: "\u8FFD\u554F",
|
|
33883
|
+
loadingPhrases: ["\u6B63\u5728\u601D\u8003\u2026", "\u6B63\u5728\u6574\u7406\u601D\u8DEF\u2026", "\u6B63\u5728\u7522\u751F\u56DE\u7B54\u2026"],
|
|
33884
|
+
/** 消息评价(点赞/点踩) */
|
|
33885
|
+
feedback: {
|
|
33886
|
+
like: "\u8B9A\u597D",
|
|
33887
|
+
dislike: "\u8CA0\u8A55",
|
|
33888
|
+
/** 点踩弹窗标题({name} = AI 名称,渲染时替换为 assistantName,空串回落 defaultAssistantName) */
|
|
33889
|
+
dislikeTitle: "\u62B1\u6B49\uFF0C\u8ACB\u544A\u8A34 {name} \u54EA\u88E1\u4E0D\u597D",
|
|
33890
|
+
/** 点踩附言输入占位(选填 ≤500 字) */
|
|
33891
|
+
dislikePlaceholder: "\u6B61\u8FCE\u5206\u4EAB\u4F60\u7684\u60F3\u6CD5",
|
|
33892
|
+
/** 附言提交按钮(不带原因直接点踩) */
|
|
33893
|
+
submit: "\u63D0\u4EA4",
|
|
33894
|
+
/** 附言跳过按钮 */
|
|
33895
|
+
skip: "\u7565\u904E",
|
|
33896
|
+
/** 评价提交失败(钩子 reject/返回错误文案时 toast) */
|
|
33897
|
+
failed: "\u8A55\u50F9\u63D0\u4EA4\u5931\u6557",
|
|
33898
|
+
/** 已取消评价 toast(CLEAR 成功后提示) */
|
|
33899
|
+
cleared: "\u5DF2\u53D6\u6D88\u8A55\u50F9"
|
|
33900
|
+
}
|
|
33901
|
+
},
|
|
33902
|
+
aiArtifacts: {
|
|
33903
|
+
copy: "\u8907\u88FD",
|
|
33904
|
+
download: "\u4E0B\u8F09",
|
|
33905
|
+
fullscreen: "\u5168\u87A2\u5E55",
|
|
33906
|
+
close: "\u95DC\u9589"
|
|
33907
|
+
},
|
|
33908
|
+
chat: {
|
|
33909
|
+
fileTag: "[\u9644\u4EF6] {name}",
|
|
33910
|
+
fileImageTag: "(\u5716\u7247)",
|
|
33911
|
+
filesSystemPrompt: "\u7528\u6236\u96A8\u8A0A\u606F\u63D0\u4F9B\u4E86\u4EE5\u4E0B\u6A94\u6848:\n{files}",
|
|
33912
|
+
toolDuration: "\u7528\u6642 {s}",
|
|
33913
|
+
continuePrompt: "\u8ACB\u57FA\u65BC\u4EE5\u4E0A\u5167\u5BB9\u7E7C\u7E8C\u5B8C\u6210\u56DE\u7B54,\u4E0D\u8981\u91CD\u8907\u5DF2\u6709\u5167\u5BB9\u3002"
|
|
33914
|
+
},
|
|
33915
|
+
errors: {
|
|
33916
|
+
requestFailed: "\u8ACB\u6C42\u5931\u6557",
|
|
33917
|
+
sessionIdMissing: "\u7F3A\u5C11 sessionId(\u5C0D\u8A71\u672A\u5EFA\u7ACB\u6216\u672A\u9078\u53D6)",
|
|
33918
|
+
noBody: "\u56DE\u61C9\u7121 body",
|
|
33919
|
+
generateFailed: "\u7522\u751F\u5931\u6557",
|
|
33920
|
+
recordUnsupported: "\u76EE\u524D\u74B0\u5883\u4E0D\u652F\u63F4\u9304\u97F3",
|
|
33921
|
+
speechError: "\u8A9E\u97F3\u8B58\u5225\u932F\u8AA4: {error}",
|
|
33922
|
+
/** 附件类型拦截提示({name} = 文件名;accept 白名单外文件入列前 toast) */
|
|
33923
|
+
attachmentRejected: "\u4E0D\u652F\u63F4\u6B64\u985E\u578B\u6A94\u6848\uFF0C\u7981\u6B62\u4E0A\u8F09\uFF1A{name}"
|
|
33924
|
+
}
|
|
33925
|
+
};
|
|
33926
|
+
|
|
33476
33927
|
let current = zhCN;
|
|
33477
33928
|
function getGlobalLocale() {
|
|
33478
33929
|
return current;
|
|
@@ -33481,7 +33932,7 @@ function setGlobalLocale(m) {
|
|
|
33481
33932
|
current = m;
|
|
33482
33933
|
}
|
|
33483
33934
|
|
|
33484
|
-
const PACKS = { "zh-CN": zhCN, "
|
|
33935
|
+
const PACKS = { "zh-CN": zhCN, en, ko, vi, "zh-HK": zhHK };
|
|
33485
33936
|
const tick = shallowRef(0);
|
|
33486
33937
|
function configureLocale(locale) {
|
|
33487
33938
|
setGlobalLocale(typeof locale === "string" ? PACKS[locale] ?? zhCN : locale);
|
|
@@ -33623,9 +34074,9 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
33623
34074
|
onMouseover: onRootOver,
|
|
33624
34075
|
onMouseleave: hideTip
|
|
33625
34076
|
}, null, 40, _hoisted_1$i),
|
|
33626
|
-
createCommentVNode(" \u8868\u683C\u5DE5\u5177\u680F tooltip \u5355\u4F8B\u6D6E\u5C42:body \u7EA7 Teleport(fixed \u5B9A\u4F4D\u4E0D\u53D7\u6EDA\u52A8\u88C1\u526A,\
|
|
34077
|
+
createCommentVNode(" \u8868\u683C\u5DE5\u5177\u680F tooltip \u5355\u4F8B\u6D6E\u5C42:body \u7EA7 Teleport(fixed \u5B9A\u4F4D\u4E0D\u53D7\u6EDA\u52A8\u88C1\u526A,\u4E14\u5728\n v-html \u5BB9\u5668\u5916,\u4E0D\u53C2\u4E0E markdown \u6E32\u67D3/\u6D88\u6BD2)\u3002\u6CE8\u610F:\u4E0D\u8981\u5728 Teleport \u6807\u7B7E\u4F53\u5185\n \u5199\u6A21\u677F\u6CE8\u91CA\u2014\u2014\u672C\u5E93\u6784\u5EFA\u94FE(SFC comments \u4FDD\u7559)\u4F1A\u628A\u5B83\u7F16\u8BD1\u6210 createCommentVNode\n \u8FDB Teleport children,prod \u5757\u4F18\u5316\u4E0B unmount \u89E6\u53D1 vuejs/core#10747\n (el \u4E3A null \u8BFB parentNode \u5D29\u6E83);\u6CE8\u91CA\u4E00\u5F8B\u5199\u5728 Teleport \u6807\u7B7E\u5916 "),
|
|
34078
|
+
createCommentVNode(" tooltip div \u521D\u59CB\u5185\u8054 display:none(\u4E0D\u4F9D\u8D56 css \u52A0\u8F7D\u65F6\u5E8F),showTip \u65F6\u7F6E block "),
|
|
33627
34079
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
33628
|
-
createCommentVNode(" \u521D\u59CB\u5185\u8054 display:none(\u4E0D\u4F9D\u8D56 css \u52A0\u8F7D\u65F6\u5E8F),showTip \u65F6\u7F6E block "),
|
|
33629
34080
|
createElementVNode(
|
|
33630
34081
|
"div",
|
|
33631
34082
|
{
|
|
@@ -34381,6 +34832,7 @@ const _hoisted_14$3 = {
|
|
|
34381
34832
|
const ROW_HEIGHT = 22;
|
|
34382
34833
|
const DEFAULT_MIN_ROWS = 3;
|
|
34383
34834
|
const DEFAULT_MAX_ROWS = 7;
|
|
34835
|
+
const STOP_GUARD_MS = 600;
|
|
34384
34836
|
const WAVE_BARS = 48;
|
|
34385
34837
|
const RING_HEAD = 10;
|
|
34386
34838
|
const RING_TAIL = 40;
|
|
@@ -34468,6 +34920,24 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
34468
34920
|
if (t === "altEnter") return e.key === "Enter" && e.altKey;
|
|
34469
34921
|
return false;
|
|
34470
34922
|
}
|
|
34923
|
+
const stopGuarded = ref(false);
|
|
34924
|
+
let stopGuardTimer = null;
|
|
34925
|
+
watch(() => props.loading, (on) => {
|
|
34926
|
+
if (on) {
|
|
34927
|
+
stopGuarded.value = true;
|
|
34928
|
+
if (stopGuardTimer) clearTimeout(stopGuardTimer);
|
|
34929
|
+
stopGuardTimer = setTimeout(() => {
|
|
34930
|
+
stopGuarded.value = false;
|
|
34931
|
+
}, STOP_GUARD_MS);
|
|
34932
|
+
}
|
|
34933
|
+
}, { immediate: true });
|
|
34934
|
+
onBeforeUnmount(() => {
|
|
34935
|
+
if (stopGuardTimer) clearTimeout(stopGuardTimer);
|
|
34936
|
+
});
|
|
34937
|
+
function onStopClick() {
|
|
34938
|
+
if (stopGuarded.value) return;
|
|
34939
|
+
emit("cancel");
|
|
34940
|
+
}
|
|
34471
34941
|
function submitable() {
|
|
34472
34942
|
if (props.allowEmptySubmit) return !props.disabled && !props.submitBtnDisabled;
|
|
34473
34943
|
return !props.disabled && !props.submitBtnDisabled && !!value.value.trim();
|
|
@@ -34918,11 +35388,11 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
34918
35388
|
createCommentVNode(" loading \u2192 \u505C\u6B62\u6309\u94AE:SVG \u5149\u5E26\u6CBF\u8FB9\u6846\u5300\u901F\u6D41\u8F6C,\u65B9/\u5706\u6309\u94AE\u5747\u9002\u7528 "),
|
|
34919
35389
|
__props.loading ? (openBlock(), createBlock(unref(ElButton), {
|
|
34920
35390
|
key: 3,
|
|
34921
|
-
class: "fv-sender-stop",
|
|
35391
|
+
class: normalizeClass(["fv-sender-stop", { "is-guarded": stopGuarded.value }]),
|
|
34922
35392
|
type: "primary",
|
|
34923
35393
|
circle: __props.round,
|
|
34924
35394
|
"aria-label": unref(dict).sender.stop,
|
|
34925
|
-
onClick:
|
|
35395
|
+
onClick: onStopClick
|
|
34926
35396
|
}, {
|
|
34927
35397
|
default: withCtx(() => [
|
|
34928
35398
|
createVNode(unref(ElIcon), null, {
|
|
@@ -34953,7 +35423,7 @@ var _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
34953
35423
|
]),
|
|
34954
35424
|
_: 1
|
|
34955
35425
|
/* STABLE */
|
|
34956
|
-
}, 8, ["circle", "aria-label"])) : (openBlock(), createBlock(unref(ElButton), {
|
|
35426
|
+
}, 8, ["class", "circle", "aria-label"])) : (openBlock(), createBlock(unref(ElButton), {
|
|
34957
35427
|
key: 4,
|
|
34958
35428
|
class: "fv-sender-submit",
|
|
34959
35429
|
type: "primary",
|
|
@@ -36534,6 +37004,7 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
36534
37004
|
start: dict.value.thinking.start,
|
|
36535
37005
|
thinking: dict.value.thinking.thinking,
|
|
36536
37006
|
end: dict.value.thinking.end,
|
|
37007
|
+
interrupted: dict.value.thinking.interrupted,
|
|
36537
37008
|
error: dict.value.thinking.error
|
|
36538
37009
|
};
|
|
36539
37010
|
return m[props.status];
|
|
@@ -36591,8 +37062,17 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
36591
37062
|
]),
|
|
36592
37063
|
_: 1
|
|
36593
37064
|
/* STABLE */
|
|
36594
|
-
})) : (openBlock(), createBlock(unref(ElIcon), {
|
|
37065
|
+
})) : __props.status === "interrupted" ? (openBlock(), createBlock(unref(ElIcon), {
|
|
36595
37066
|
key: 3,
|
|
37067
|
+
class: "is-interrupted"
|
|
37068
|
+
}, {
|
|
37069
|
+
default: withCtx(() => [
|
|
37070
|
+
createVNode(unref(WarningFilled))
|
|
37071
|
+
]),
|
|
37072
|
+
_: 1
|
|
37073
|
+
/* STABLE */
|
|
37074
|
+
})) : (openBlock(), createBlock(unref(ElIcon), {
|
|
37075
|
+
key: 4,
|
|
36596
37076
|
class: "is-error"
|
|
36597
37077
|
}, {
|
|
36598
37078
|
default: withCtx(() => [
|
|
@@ -37065,7 +37545,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
37065
37545
|
class: normalizeClass(["fv-chain-item", [statusClass(item.status), item.class]])
|
|
37066
37546
|
},
|
|
37067
37547
|
[
|
|
37068
|
-
createCommentVNode(" \u8282\u70B9:\u81EA\u5B9A\u4E49 icon > \u72B6\u6001\u56FE\u6807(loading \u65CB\u8F6C/\u6210\u529F\u52FE/\u9519\u8BEF\u53C9/\u5F85\u5B9A\u7A7A\u5FC3\u70B9)\u3002\
|
|
37548
|
+
createCommentVNode(" \u8282\u70B9:\u81EA\u5B9A\u4E49 icon > \u72B6\u6001\u56FE\u6807(loading \u65CB\u8F6C/\u6210\u529F\u52FE/\u9519\u8BEF\u53C9/\u5F85\u5B9A\u7A7A\u5FC3\u70B9)\u3002\n \u67E5\u8BE2\u4E2D(loading)\u5E26\u81EA\u5B9A\u4E49\u653E\u5927\u955C icon:is-searching \u6446\u52A8\u52A8\u753B\u66FF\u4EE3\u9ED8\u8BA4\u8F6C\u5708;\n \u601D\u8003\u4E2D\u6587\u672C\u6B65(is-thinking,status \u672A\u5B9A):is-thinking \u653E\u5927\u7F29\u5C0F\u8109\u51B2\u66FF\u4EE3\u6446\u52A8 "),
|
|
37069
37549
|
createElementVNode("span", _hoisted_1$9, [
|
|
37070
37550
|
item.icon ? (openBlock(), createBlock(unref(ElIcon), {
|
|
37071
37551
|
key: 0,
|
|
@@ -37102,7 +37582,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
37102
37582
|
/* STABLE */
|
|
37103
37583
|
})) : (openBlock(), createElementBlock("span", _hoisted_2$9))
|
|
37104
37584
|
]),
|
|
37105
|
-
createCommentVNode(" \u5185\u5BB9:#content \u4F5C\u7528\u57DF\u63D2\u69FD\u8986\u76D6\u9ED8\u8BA4 title/description;\
|
|
37585
|
+
createCommentVNode(" \u5185\u5BB9:#content \u4F5C\u7528\u57DF\u63D2\u69FD\u8986\u76D6\u9ED8\u8BA4 title/description;\n text \u6B65(\u601D\u8003\u6BB5):\u6807\u9898\u884C\u300C\u6B63\u5728\u601D\u8003/\u601D\u8003\u5B8C\u6210\u300D+ \u6298\u53E0\u6001\u6700\u65B0\u4E00\u884C\u7070\u8272\u9884\u89C8(\u5408\u8BA1\u5355\u884C)\n + \u5C55\u5F00\u7BAD\u5934;description \u6298\u53E0\u533A\u653E\u539F\u601D\u8003\u6587\u6848(\u6253\u5B57\u673A/\u9759\u6001),ElScrollbar \u9650\u9AD8 269px,\n \u6D41\u5F0F\u8F93\u51FA\u671F\u95F4\u81EA\u52A8\u6EDA\u5E95;\n tool \u6B65:title \u8FDE\u7EED\u6362\u884C\u5408\u5E76\u4E3A\u4E00\u4E2A;collapsible \u5F00\u542F\u65F6\u8D85 3 \u884C\u622A\u65AD,\n \u56FE\u6807\u6309\u94AE\u62FC\u5728\u7B2C\u4E09\u884C\u6587\u5B57\u672B;\u601D\u8003\u6587\u6848\u6B65\u6D41\u5F0F\u671F\u95F4\u7ECF Typewriter \u9010\u5B57\u6253\u51FA(\u4E0E\u6B63\u6587\u540C\u6B3E),\n \u56DE\u843D\u65F6\u673A\u89C1 isTypingItem "),
|
|
37106
37586
|
createElementVNode("div", _hoisted_3$9, [
|
|
37107
37587
|
renderSlot(_ctx.$slots, "content", {
|
|
37108
37588
|
item,
|
|
@@ -37126,7 +37606,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
37126
37606
|
1
|
|
37127
37607
|
/* TEXT */
|
|
37128
37608
|
),
|
|
37129
|
-
createCommentVNode(" \u6298\u53E0\u6001\u9884\u89C8:\u4EC5\u8FDB\u884C\u4E2D(\u672A\u5C01\u53E3)\u663E\u793A,\u53D6\u6700\u65B0\u4E00\u884C\u6587\u5B57(\u7070\u8272,\u4E0E\u6807\u9898\u5408\u8BA1\u5355\u884C\u622A\u65AD),\
|
|
37609
|
+
createCommentVNode(" \u6298\u53E0\u6001\u9884\u89C8:\u4EC5\u8FDB\u884C\u4E2D(\u672A\u5C01\u53E3)\u663E\u793A,\u53D6\u6700\u65B0\u4E00\u884C\u6587\u5B57(\u7070\u8272,\u4E0E\u6807\u9898\u5408\u8BA1\u5355\u884C\u622A\u65AD),\n \u7ED9\u300C\u6709\u4E1C\u897F\u5728\u8F93\u51FA\u300D\u7684\u611F\u77E5;\u601D\u8003\u5B8C\u6210(closed)\u4E0D\u518D\u663E\u793A "),
|
|
37130
37610
|
!isTextExpanded(item.key) && !item.closed && textStepPreview(item) ? (openBlock(), createElementBlock(
|
|
37131
37611
|
"span",
|
|
37132
37612
|
_hoisted_6$5,
|
|
@@ -37150,7 +37630,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
37150
37630
|
)
|
|
37151
37631
|
], 10, _hoisted_4$7),
|
|
37152
37632
|
isTextExpanded(item.key) ? (openBlock(), createElementBlock("div", _hoisted_7$4, [
|
|
37153
|
-
createCommentVNode(" \u4E0A/\u4E0B\u7F18\u6E10\u9690\u6761:\u5185\u5BB9\u88AB\u6EDA\u52A8\u88C1\u6389\u7684\u65B9\u5411\u624D\u6E32\u67D3(\u72B6\u6001\u89C1 edgeFade),\
|
|
37633
|
+
createCommentVNode(" \u4E0A/\u4E0B\u7F18\u6E10\u9690\u6761:\u5185\u5BB9\u88AB\u6EDA\u52A8\u88C1\u6389\u7684\u65B9\u5411\u624D\u6E32\u67D3(\u72B6\u6001\u89C1 edgeFade),\n \u906E\u7F69\u76D6\u5728\u6EDA\u52A8\u533A\u4E4B\u4E0A\u3001\u4E0D\u62E6\u6307\u9488;\u6837\u5F0F\u7ECF .scroll-edge-fade-top/-bottom "),
|
|
37154
37634
|
edgeFade(item.key).top ? (openBlock(), createElementBlock("span", _hoisted_8$3)) : createCommentVNode("v-if", true),
|
|
37155
37635
|
edgeFade(item.key).bottom ? (openBlock(), createElementBlock("span", _hoisted_9$1)) : createCommentVNode("v-if", true),
|
|
37156
37636
|
createVNode(unref(ElScrollbar), {
|
|
@@ -37201,7 +37681,7 @@ var _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
|
37201
37681
|
class: normalizeClass(["fv-chain-title", { "is-clamped": __props.collapsible && showToggle(item.key) && !expandedKeys.value.has(item.key) }])
|
|
37202
37682
|
},
|
|
37203
37683
|
[
|
|
37204
|
-
createCommentVNode(" \u622A\u65AD\u7531 JS \u6D4B\u91CF(displayTitle \u524D\u7F00\u539F\u6587):\u6309\u94AE\u4E3A\u5185\u8054\u5143\u7D20\u81EA\u7136\u7D27\u8DDF\
|
|
37684
|
+
createCommentVNode(" \u622A\u65AD\u7531 JS \u6D4B\u91CF(displayTitle \u524D\u7F00\u539F\u6587):\u6309\u94AE\u4E3A\u5185\u8054\u5143\u7D20\u81EA\u7136\u7D27\u8DDF\n \u7B2C\u4E09\u884C\u6587\u5B57\u672B(\u6536\u8D77)/\u5168\u91CF\u672B\u5B57(\u5C55\u5F00);\u65E0\u5E03\u5C40\u73AF\u5883\u4E0D\u88C1\u4E0D\u663E\u6309\u94AE;\n \u5EF6\u8FDF\u5F00\u6253\u7B49\u5F85\u671F(holding)\u6E32\u67D3\u7A7A\u5360\u4F4D,\u5230\u70B9\u518D\u6302\u6253\u5B57\u673A;\n \u6574\u94FE\u4E0D\u53D8\u5F0F:\u81F3\u591A\u6700\u540E\u4E00\u4E2A\u5019\u9009\u6253\u5B57\u6B65\u6302\u6253\u5B57\u673A(lastTypingKey),\n \u5176\u4F59\u9759\u6001\u5168\u91CF\u2014\u2014\u65B0\u6B65\u5DF2\u5230\u573A,\u65E7\u6B65\u4E0D\u62D6\u62CD,\u7ED3\u6784\u4E0A\u675C\u7EDD\u591A\u6B65\u5E76\u884C\u9010\u5B57 "),
|
|
37205
37685
|
isTypingItem(item) && item.key === lastTypingKey.value && !holdingKeys.value.has(item.key) ? (openBlock(), createBlock(_sfc_main$h, {
|
|
37206
37686
|
key: 0,
|
|
37207
37687
|
content: normalizeTitle(item.title),
|
|
@@ -37380,7 +37860,7 @@ var _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
|
37380
37860
|
])
|
|
37381
37861
|
])
|
|
37382
37862
|
]),
|
|
37383
|
-
createCommentVNode(" \u5EFA\u8BAE\u533A(#suggestions \u63D2\u69FD;\u8C03\u7528\u65B9\u901A\u5E38\u6E32\u67D3 Prompts \u5FEB\u6377\u6761\u3002\
|
|
37863
|
+
createCommentVNode(" \u5EFA\u8BAE\u533A(#suggestions \u63D2\u69FD;\u8C03\u7528\u65B9\u901A\u5E38\u6E32\u67D3 Prompts \u5FEB\u6377\u6761\u3002\n \u6302\u5728\u6587\u6848\u4E0B\u65B9\u4E0E\u6587\u6848\u540C\u5217:\u6A2A\u6392\u65F6\u968F\u6587\u6848\u9760\u5DE6,\u53F3\u4FA7\u5409\u7965\u7269\u6D6E\u5C42\u4E0D\u88AB\u9876\u9AD8) "),
|
|
37384
37864
|
_ctx.$slots.suggestions ? (openBlock(), createElementBlock("div", _hoisted_8$2, [
|
|
37385
37865
|
renderSlot(_ctx.$slots, "suggestions")
|
|
37386
37866
|
])) : createCommentVNode("v-if", true)
|
|
@@ -37653,7 +38133,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
37653
38133
|
return openBlock(), createElementBlock(
|
|
37654
38134
|
"div",
|
|
37655
38135
|
{
|
|
37656
|
-
class: normalizeClass(["fv-files-card", [`is-${__props.fileType}`, `is-${__props.status}
|
|
38136
|
+
class: normalizeClass(["fv-files-card", [`is-${__props.fileType}`, `is-${__props.status}`, { "has-download": !!__props.onDownload }]])
|
|
37657
38137
|
},
|
|
37658
38138
|
[
|
|
37659
38139
|
createCommentVNode(" \u56FE\u7247\u6A21\u5F0F:#image \u63D2\u69FD > url \u7F29\u7565\u56FE > Picture \u5360\u4F4D "),
|
|
@@ -37736,7 +38216,7 @@ var _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
37736
38216
|
_: 1
|
|
37737
38217
|
/* STABLE */
|
|
37738
38218
|
})) : createCommentVNode("v-if", true),
|
|
37739
|
-
createCommentVNode(" \u53F3\u4E0A\u89D2\u6309\u94AE(\u540C\u4F4D\u7F6E):\u5220\u9664\u6309\u94AE\u5E38\u9A7B(\u65E7\u5951\u7EA6,\u65E0\u56DE\u8C03\u65F6\u4E3A\u65E0\u58F0\u5360\u4F4D);\
|
|
38219
|
+
createCommentVNode(" \u53F3\u4E0A\u89D2\u6309\u94AE(\u540C\u4F4D\u7F6E):\u5220\u9664\u6309\u94AE\u5E38\u9A7B(\u65E7\u5951\u7EA6,\u65E0\u56DE\u8C03\u65F6\u4E3A\u65E0\u58F0\u5360\u4F4D);\n \u4E0B\u8F7D\u6309\u94AE\u6309 onDownload \u6CE8\u5165\u6E32\u67D3\u2014\u2014\u6D88\u606F\u9644\u4EF6\u5361\u8D70\u4E0B\u8F7D,\u8F93\u5165\u533A\u9644\u4EF6\u5361\u8D70\u5220\u9664,\n \u6D88\u606F\u5361\u5185\u5220\u9664\u6309\u94AE\u7531 AiMessage \u4F5C\u7528\u57DF\u6837\u5F0F\u9690\u85CF,\u4E24\u8005\u4E0D\u91CD\u53E0 "),
|
|
37740
38220
|
createElementVNode("button", {
|
|
37741
38221
|
type: "button",
|
|
37742
38222
|
class: "fv-files-card-remove",
|
|
@@ -38818,7 +39298,7 @@ function useChat(options) {
|
|
|
38818
39298
|
for (const a of activeAdapters.keys()) a.abort();
|
|
38819
39299
|
activeAdapters.clear();
|
|
38820
39300
|
for (const m of Object.values(msgs.messages.value)) {
|
|
38821
|
-
if (m.status === "pending" || m.status === "streaming") msgs.edit(m.id, { status: "done" });
|
|
39301
|
+
if (m.status === "pending" || m.status === "streaming") msgs.edit(m.id, { status: "done", error: "" });
|
|
38822
39302
|
}
|
|
38823
39303
|
}
|
|
38824
39304
|
function resolveTarget(messageId) {
|
|
@@ -39027,11 +39507,14 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39027
39507
|
const dict = useLocaleDict(() => props.locale);
|
|
39028
39508
|
const emit = __emit;
|
|
39029
39509
|
const isUser = computed(() => props.message.role === "user");
|
|
39510
|
+
const isInterrupted = computed(() => props.message.status === "done" && props.message.error === "");
|
|
39511
|
+
const showHeader = computed(() => isUser.value ? props.showUserName : props.showAssistantName);
|
|
39030
39512
|
const hasContentSeparator = computed(
|
|
39031
39513
|
() => !!props.message.content || props.message.status === "done" || props.message.status === "error"
|
|
39032
39514
|
);
|
|
39033
39515
|
const thinkingStatus = computed(() => {
|
|
39034
39516
|
if (props.message.status === "error") return "error";
|
|
39517
|
+
if (isInterrupted.value) return "interrupted";
|
|
39035
39518
|
if (props.message.status === "pending") return props.message.reasoning ? "thinking" : "start";
|
|
39036
39519
|
if (props.message.status === "streaming") return "thinking";
|
|
39037
39520
|
return "end";
|
|
@@ -39040,6 +39523,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39040
39523
|
const hasToolSteps = computed(() => (props.message.toolSteps?.length ?? 0) > 0);
|
|
39041
39524
|
const toolThinkingStatus = computed(() => {
|
|
39042
39525
|
if (props.message.status === "error") return "error";
|
|
39526
|
+
if (isInterrupted.value) return "interrupted";
|
|
39043
39527
|
if (props.message.status === "pending" || props.message.status === "streaming") return "thinking";
|
|
39044
39528
|
return "end";
|
|
39045
39529
|
});
|
|
@@ -39086,7 +39570,8 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39086
39570
|
const chainSummaryLabel = computed(() => {
|
|
39087
39571
|
if (props.message.status !== "done") return void 0;
|
|
39088
39572
|
if (!toolStepCount.value) return void 0;
|
|
39089
|
-
|
|
39573
|
+
const tpl = isInterrupted.value ? dict.value.thinking.interruptedWithTools : dict.value.thinking.endWithTools;
|
|
39574
|
+
return tpl.split("{n}").join(String(toolStepCount.value));
|
|
39090
39575
|
});
|
|
39091
39576
|
const wasStreaming = ref(false);
|
|
39092
39577
|
watch(
|
|
@@ -39218,6 +39703,20 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39218
39703
|
const s = props.message.suggestions;
|
|
39219
39704
|
return s && s.length ? s : [];
|
|
39220
39705
|
});
|
|
39706
|
+
function isFollowupsReady() {
|
|
39707
|
+
const s = props.message.status;
|
|
39708
|
+
if (s === "pending" || s === "streaming") return false;
|
|
39709
|
+
if (s === "error") return true;
|
|
39710
|
+
const tw = contentTypewriterRef.value;
|
|
39711
|
+
return !(tw ? tw.isTyping : props.typing && wasStreaming.value && props.message.content);
|
|
39712
|
+
}
|
|
39713
|
+
const followupsVisible = ref(isFollowupsReady());
|
|
39714
|
+
watch(
|
|
39715
|
+
[() => props.message.status, () => contentTypewriterRef.value?.isTyping],
|
|
39716
|
+
() => {
|
|
39717
|
+
followupsVisible.value = isFollowupsReady();
|
|
39718
|
+
}
|
|
39719
|
+
);
|
|
39221
39720
|
const followupsEnabled = computed(() => props.message.status === "done");
|
|
39222
39721
|
const followupTitle = computed(() => dict.value.aiMessage.followupsTitle);
|
|
39223
39722
|
function onFollowup(item) {
|
|
@@ -39287,20 +39786,24 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39287
39786
|
void submitFeedback("DISLIKE");
|
|
39288
39787
|
}
|
|
39289
39788
|
const resolvedUrls = ref({});
|
|
39290
|
-
const
|
|
39789
|
+
const resolvingPromises = /* @__PURE__ */ new Map();
|
|
39291
39790
|
function displayUrl(f) {
|
|
39292
39791
|
if (!f.url) return "";
|
|
39293
39792
|
const hit = resolvedUrls.value[f.url];
|
|
39294
39793
|
if (hit !== void 0) return hit;
|
|
39295
|
-
|
|
39296
|
-
|
|
39297
|
-
|
|
39298
|
-
|
|
39299
|
-
|
|
39300
|
-
|
|
39301
|
-
|
|
39302
|
-
|
|
39303
|
-
|
|
39794
|
+
void resolveAttachment(f);
|
|
39795
|
+
return f.url;
|
|
39796
|
+
}
|
|
39797
|
+
function resolveAttachment(f) {
|
|
39798
|
+
const raw = f.url ?? "";
|
|
39799
|
+
const pending = resolvingPromises.get(raw);
|
|
39800
|
+
if (pending) return pending;
|
|
39801
|
+
const job = props.resolveFileUrl && /^https?:\/\//i.test(raw) ? Promise.resolve(props.resolveFileUrl(f)).then((u) => {
|
|
39802
|
+
if (u && u !== raw) resolvedUrls.value[raw] = u;
|
|
39803
|
+
return u || raw;
|
|
39804
|
+
}).catch(() => raw).finally(() => resolvingPromises.delete(raw)) : Promise.resolve(raw);
|
|
39805
|
+
resolvingPromises.set(raw, job);
|
|
39806
|
+
return job;
|
|
39304
39807
|
}
|
|
39305
39808
|
const previewList = computed(() => (props.message.files ?? []).filter((f) => f.type === "image"));
|
|
39306
39809
|
const previewVisible = ref(false);
|
|
@@ -39313,14 +39816,8 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39313
39816
|
}
|
|
39314
39817
|
}
|
|
39315
39818
|
async function downloadFile(f) {
|
|
39316
|
-
let href = f
|
|
39317
|
-
if (!href) return;
|
|
39318
|
-
if (props.resolveFileUrl && /^https?:\/\//i.test(href)) {
|
|
39319
|
-
try {
|
|
39320
|
-
href = resolvedUrls.value[href] ?? await Promise.resolve(props.resolveFileUrl(f));
|
|
39321
|
-
} catch {
|
|
39322
|
-
}
|
|
39323
|
-
}
|
|
39819
|
+
let href = await resolveAttachment(f);
|
|
39820
|
+
if (!href || !/^(https?:|blob:|data:)/i.test(href)) return;
|
|
39324
39821
|
const a = document.createElement("a");
|
|
39325
39822
|
a.href = href;
|
|
39326
39823
|
a.download = f.name || "";
|
|
@@ -39341,10 +39838,15 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39341
39838
|
__expose({ message: computed(() => props.message), expandThoughtChain, collapseThoughtChain });
|
|
39342
39839
|
return (_ctx, _cache) => {
|
|
39343
39840
|
return openBlock(), createElementBlock("div", {
|
|
39344
|
-
class: normalizeClass(["fv-msg", [`is-${__props.message.role}`, {
|
|
39841
|
+
class: normalizeClass(["fv-msg", [`is-${__props.message.role}`, {
|
|
39842
|
+
"is-error": __props.message.status === "error",
|
|
39843
|
+
"is-user": isUser.value,
|
|
39844
|
+
// 无名称行且头像在场:主体首行与头像垂直居中(默认 flex-start 会偏上)
|
|
39845
|
+
"is-no-header": !showHeader.value && (isUser.value ? __props.showUserAvatar : __props.showAssistantAvatar)
|
|
39846
|
+
}]]),
|
|
39345
39847
|
"data-message-id": __props.message.id
|
|
39346
39848
|
}, [
|
|
39347
|
-
createCommentVNode(" \u5934\u50CF:user \u53F3\u4FA7(\u81EA\u8EAB),assistant \u5DE6\u4FA7;\u663E\u9690\u5F00\u5173\u5173\u95ED\u65F6\u4E0D\u6E32\u67D3;\
|
|
39849
|
+
createCommentVNode(" \u5934\u50CF:user \u53F3\u4FA7(\u81EA\u8EAB),assistant \u5DE6\u4FA7;\u663E\u9690\u5F00\u5173\u5173\u95ED\u65F6\u4E0D\u6E32\u67D3;\n \u4F18\u5148\u7EA7:message-avatar \u6574\u4F53\u63D2\u69FD > user-avatar/assistant-avatar \u7EC6\u5206\u63D2\u69FD > props \u56FE\u7247 > \u5185\u7F6E\u56FE\u6807;\n \u5757\u5C3A\u5BF8\u9ED8\u8BA4 50\xD750(--fv-msg-avatar-size \u53EF\u8986\u76D6),\u5706\u5F62\u6A21\u5F0F\u9ED8\u8BA4\u5F00\n (--fv-msg-avatar-radius \u53D8\u91CF\u4F18\u5148,avatarCircle=false \u56DE\u843D\u9ED8\u8BA4\u5706\u89D2) "),
|
|
39348
39850
|
(isUser.value ? __props.showUserAvatar : __props.showAssistantAvatar) ? (openBlock(), createElementBlock(
|
|
39349
39851
|
"div",
|
|
39350
39852
|
{
|
|
@@ -39387,7 +39889,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39387
39889
|
)) : createCommentVNode("v-if", true),
|
|
39388
39890
|
createElementVNode("div", _hoisted_4$1, [
|
|
39389
39891
|
createCommentVNode(" \u5934\u90E8:\u89D2\u8272\u540D + \u6A21\u578B\u6807\u8BB0;\u663E\u9690\u5F00\u5173\u5173\u95ED\u65F6\u4E0D\u6E32\u67D3;\u7EC6\u5206\u63D2\u69FD > props > \u9ED8\u8BA4\u6587\u6848 "),
|
|
39390
|
-
|
|
39892
|
+
showHeader.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
39391
39893
|
isUser.value ? renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
|
|
39392
39894
|
createTextVNode(
|
|
39393
39895
|
toDisplayString(__props.userName || unref(dict).aiMessage.defaultUserName),
|
|
@@ -39409,7 +39911,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39409
39911
|
/* TEXT */
|
|
39410
39912
|
)) : createCommentVNode("v-if", true)
|
|
39411
39913
|
])) : createCommentVNode("v-if", true),
|
|
39412
|
-
createCommentVNode(" \u9644\u4EF6:user \u6D88\u606F files \u5E73\u94FA;\u56FE\u7247\u7F29\u7565\u53EF\u70B9(\u5185\u7F6E\u653E\u5927\u9884\u89C8),\u6587\u6863\u590D\u7528\
|
|
39914
|
+
createCommentVNode(" \u9644\u4EF6:user \u6D88\u606F files \u5E73\u94FA;\u56FE\u7247\u7F29\u7565\u53EF\u70B9(\u5185\u7F6E\u653E\u5927\u9884\u89C8),\u6587\u6863\u590D\u7528\n sender \u7684 FilesCard \u5361\u7247(\u7C7B\u578B\u56FE\u6807 + \u540D\u79F0/\u5927\u5C0F)\u2014\u2014\u4E0B\u8F7D\u4EC5\u8D70\u5361\u7247\u53F3\u4E0A\n \u5E38\u9A7B\u4E0B\u8F7D\u6309\u94AE,\u70B9\u672C\u4F53\u53EA\u4E0A\u629B file-click(\u5BBF\u4E3B\u57CB\u70B9/\u63A5\u7BA1,\u9ED8\u8BA4\u65E0\u884C\u4E3A) "),
|
|
39413
39915
|
__props.message.files?.length ? (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
39414
39916
|
renderSlot(_ctx.$slots, "message-files", {
|
|
39415
39917
|
message: __props.message,
|
|
@@ -39471,7 +39973,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39471
39973
|
teleported: "",
|
|
39472
39974
|
onClose: _cache[0] || (_cache[0] = ($event) => previewVisible.value = false)
|
|
39473
39975
|
}, null, 8, ["url-list", "initial-index"])) : createCommentVNode("v-if", true),
|
|
39474
|
-
createCommentVNode(" \u601D\u8003\u94FE(assistant \u542B toolSteps/reasoning \u65F6):\u591A item \u7531 Thinking \u6298\u53E0\u5934\u627F\u8F7D\u72B6\u6001\
|
|
39976
|
+
createCommentVNode(" \u601D\u8003\u94FE(assistant \u542B toolSteps/reasoning \u65F6):\u591A item \u7531 Thinking \u6298\u53E0\u5934\u627F\u8F7D\u72B6\u6001\n \u6C47\u603B\u6587\u6848(\u843D\u5B9A\u5E26\u5DE5\u5177\u6B21\u6570)\u4E0E\u6536\u8D77/\u5C55\u5F00;\u5355 item \u65E0\u6C47\u603B\u5FC5\u8981,\u9690\u85CF\u6298\u53E0\u5934\n (hideHeader,\u94FE\u5E73\u94FA\u4E14\u5E38\u9A7B\u5C55\u5F00,\u5355\u6B65\u81EA\u5E26\u72B6\u6001\u56FE\u6807\u4E0E per-item \u6298\u53E0);\n \u4EC5 reasoning \u65E0 toolSteps \u65F6(\u7EAF\u601D\u8003\u6D88\u606F)\u56DE\u843D\u94FE\u4E0B Markdown \u6E32\u67D3 "),
|
|
39475
39977
|
!isUser.value && (hasToolSteps.value || hasReasoning.value) ? (openBlock(), createBlock(_sfc_main$a, {
|
|
39476
39978
|
key: 3,
|
|
39477
39979
|
modelValue: toolsExpanded.value,
|
|
@@ -39492,7 +39994,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39492
39994
|
Fragment,
|
|
39493
39995
|
{ key: 1 },
|
|
39494
39996
|
[
|
|
39495
|
-
createCommentVNode(" \u7EAF\u601D\u8003\u6D88\u606F(reasoning \u65E0 toolSteps)\u56DE\u843D\u94FE\u4E0B\u6E32\u67D3:\u6D41\u5F0F\u671F\u95F4 Typewriter \u9010\u5B57,\
|
|
39997
|
+
createCommentVNode(" \u7EAF\u601D\u8003\u6D88\u606F(reasoning \u65E0 toolSteps)\u56DE\u843D\u94FE\u4E0B\u6E32\u67D3:\u6D41\u5F0F\u671F\u95F4 Typewriter \u9010\u5B57,\n \u6B63\u6587\u51FA\u73B0/\u601D\u8003\u6536\u53E3\u5373\u51B2\u5237\u56DE\u843D\u9759\u6001 Markdown(\u540C ThoughtChain \u5C01\u53E3\u51B2\u5237\u8BED\u4E49) "),
|
|
39496
39998
|
createVNode(_sfc_main$h, {
|
|
39497
39999
|
content: __props.message.reasoning ?? "",
|
|
39498
40000
|
"is-markdown": "",
|
|
@@ -39548,7 +40050,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39548
40050
|
Fragment,
|
|
39549
40051
|
{ key: 3 },
|
|
39550
40052
|
[
|
|
39551
|
-
createCommentVNode(" \u751F\u6210\u4E2D\u5360\u4F4D:\u4E3B\u9898\u8272\u5708\u5708 spinner + \u8F6E\u6362\u6587\u6848(loadingPhrases,3s \u8F6E\u6362);\
|
|
40053
|
+
createCommentVNode(" \u751F\u6210\u4E2D\u5360\u4F4D:\u4E3B\u9898\u8272\u5708\u5708 spinner + \u8F6E\u6362\u6587\u6848(loadingPhrases,3s \u8F6E\u6362);\n \u6709\u5DE5\u5177\u8F68\u8FF9\u65F6\u4E0D\u91CD\u590D\u5360\u4F4D(Thinking \u5934\u5DF2\u662F\u300C\u601D\u8003\u4E2D...\u300D) "),
|
|
39552
40054
|
createElementVNode("span", _hoisted_13, [
|
|
39553
40055
|
_cache[11] || (_cache[11] = createElementVNode(
|
|
39554
40056
|
"span",
|
|
@@ -39588,7 +40090,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39588
40090
|
2112
|
|
39589
40091
|
/* STABLE_FRAGMENT, DEV_ROOT_FRAGMENT */
|
|
39590
40092
|
)) : createCommentVNode("v-if", true),
|
|
39591
|
-
createCommentVNode(" \u64CD\u4F5C\u533A:assistant \u590D\u5236/\u91CD\u751F\u6210 + \u6D88\u606F\u8BC4\u4EF7 + \u5206\u652F\u5207\u6362;user \u4EC5\u590D\u5236(hover \u6D88\u606F\u65F6\u6D6E\u73B0,\u89C1 scss)\u3002\
|
|
40093
|
+
createCommentVNode(" \u64CD\u4F5C\u533A:assistant \u590D\u5236/\u91CD\u751F\u6210 + \u6D88\u606F\u8BC4\u4EF7 + \u5206\u652F\u5207\u6362;user \u4EC5\u590D\u5236(hover \u6D88\u606F\u65F6\u6D6E\u73B0,\u89C1 scss)\u3002\n \u590D\u5236/\u91CD\u751F\u6210\u6309\u94AE\u5F85\u56DE\u7B54\u843D\u5B9A(status=done)\u624D\u6E32\u67D3\u2014\u2014\u751F\u6210\u4E2D(pending/streaming)\u4E0D\u51FA\u5DE5\u5177\u6309\u94AE;\n error \u65E0\u53EF\u590D\u5236/\u91CD\u751F\u6210\u6B63\u6587\u4E5F\u4E0D\u51FA;\u5206\u652F\u5207\u6362\u5668\u4E0E\u65F6\u95F4\u4E0D\u53D7\u6B64\u95E8\u63A7,\u751F\u6210\u4E2D\u4ECD\u53EF\u5207\u5206\u652F/\u663E\u65F6\u95F4\u3002\n feedbackVisible \u72EC\u7ACB\u4E8E showActions:\u5173\u95ED\u64CD\u4F5C\u6309\u94AE\u4E0D\u541E\u8BC4\u4EF7\u5165\u53E3\u3002\n \u5BB9\u5668\u663E\u9690 = \u4EFB\u4E00\u5185\u4EF6\u5728\u573A(\u64CD\u4F5C\u6309\u94AE/\u8BC4\u4EF7/\u5206\u652F/\u65F6\u95F4),\u5168\u90E8\u7F3A\u5E2D\u624D\u4E0D\u6E32\u67D3,\u907F\u514D\u7A7A\u64CD\u4F5C\u533A\u5360\u4F4D "),
|
|
39592
40094
|
actionsVisible.value || feedbackVisible.value && !isToolOnlyRow.value || __props.showBranchSwitch && __props.branch && __props.branch.count > 1 || messageTimeText.value && timeVisible.value ? (openBlock(), createElementBlock("div", _hoisted_16, [
|
|
39593
40095
|
renderSlot(_ctx.$slots, "message-actions", { message: __props.message }, () => [
|
|
39594
40096
|
actionsVisible.value && isUser.value && userCopyVisible.value ? (openBlock(), createBlock(unref(ElTooltip), {
|
|
@@ -39678,7 +40180,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39678
40180
|
_: 1
|
|
39679
40181
|
/* STABLE */
|
|
39680
40182
|
}, 8, ["content"])) : createCommentVNode("v-if", true),
|
|
39681
|
-
createCommentVNode(" \u6D88\u606F\u8BC4\u4EF7 \u{1F44D}/\u{1F44E}(assistant \u6700\u7EC8\u56DE\u7B54\u884C;\u518D\u6B21\u70B9\u51FB\u5F53\u524D\u6001\u53D6\u6D88):\
|
|
40183
|
+
createCommentVNode(" \u6D88\u606F\u8BC4\u4EF7 \u{1F44D}/\u{1F44E}(assistant \u6700\u7EC8\u56DE\u7B54\u884C;\u518D\u6B21\u70B9\u51FB\u5F53\u524D\u6001\u53D6\u6D88):\n \u70B9\u8E29\u5E26\u9644\u8A00\u5F39\u7A97(\u5C45\u4E2D ElDialog,textarea \u2264500 \u53EF\u8DF3\u8FC7),\u4E50\u89C2\u66F4\u65B0\u5931\u8D25\u56DE\u6EDA "),
|
|
39682
40184
|
feedbackVisible.value && !isToolOnlyRow.value ? (openBlock(), createElementBlock("span", _hoisted_17, [
|
|
39683
40185
|
createVNode(unref(ElTooltip), {
|
|
39684
40186
|
content: unref(dict).aiMessage.feedback.like,
|
|
@@ -39798,7 +40300,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39798
40300
|
/* STABLE */
|
|
39799
40301
|
}, 8, ["disabled", "aria-label"])
|
|
39800
40302
|
])) : createCommentVNode("v-if", true),
|
|
39801
|
-
createCommentVNode(" \u6D88\u606F\u65F6\u95F4:\u8DDF\u5728\u64CD\u4F5C\u6309\u94AE\u4E0E\u5206\u652F\u5207\u6362\u4E4B\u540E;user \u6D88\u606F hover \u9690\u85CF\u6309\u94AE\u4E0D\u5F71\u54CD\u65F6\u95F4\u5E38\u9A7B;\
|
|
40303
|
+
createCommentVNode(" \u6D88\u606F\u65F6\u95F4:\u8DDF\u5728\u64CD\u4F5C\u6309\u94AE\u4E0E\u5206\u652F\u5207\u6362\u4E4B\u540E;user \u6D88\u606F hover \u9690\u85CF\u6309\u94AE\u4E0D\u5F71\u54CD\u65F6\u95F4\u5E38\u9A7B;\n assistant \u751F\u6210\u4E2D\u4E0D\u663E,\u6B63\u6587\u6253\u5B8C\u5B57(\u6216 error)\u540E\u624D\u6D6E\u73B0 "),
|
|
39802
40304
|
messageTimeText.value && timeVisible.value ? (openBlock(), createElementBlock(
|
|
39803
40305
|
"span",
|
|
39804
40306
|
_hoisted_20,
|
|
@@ -39807,8 +40309,8 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39807
40309
|
/* TEXT */
|
|
39808
40310
|
)) : createCommentVNode("v-if", true)
|
|
39809
40311
|
])) : createCommentVNode("v-if", true),
|
|
39810
|
-
createCommentVNode(" \u8FFD\u95EE\u5EFA\u8BAE:\u64CD\u4F5C\u533A(\u5DE5\u5177\u680F)\u4E0B\u65B9,\u5206\u9694\u7EBF + \
|
|
39811
|
-
followups.value.length ? (openBlock(), createElementBlock("div", {
|
|
40312
|
+
createCommentVNode(" \u8FFD\u95EE\u5EFA\u8BAE:\u64CD\u4F5C\u533A(\u5DE5\u5177\u680F)\u4E0B\u65B9,\u5206\u9694\u7EBF + \u52A0\u7C97\u300C\u8FFD\u95EE\u300D\u6807\u9898\u5F15\u51FA;\u7EB5\u5411\u5217\u8868\u4E00\u884C\u4E00\u6761\n (followupStyle='chips' \u5207\u56DE\u65E7\u6A2A\u5411\u6C14\u6CE1\u5F62\u6001,\u65E0\u6807\u9898)\u3002\u5386\u53F2\u6D88\u606F\u540C\u6837\u6E32\u67D3;\n \u6B63\u6587\u6253\u5B57\u6548\u679C\u5B8C\u6210\u540E\u624D\u6E32\u67D3(\u6D41\u5F0F suggestions \u4E8B\u4EF6\u5230\u8FBE\u4E0D\u51FA,\u843D\u5B9A+\u6253\u5B8C\u5B57\u6574\u4F53\u6D6E\u73B0),\n \u843D\u5B9A\u540E\u53EF\u70B9\u51FB,\u70B9\u51FB\u7ECF followup-select \u4E0A\u629B "),
|
|
40313
|
+
followups.value.length && followupsVisible.value ? (openBlock(), createElementBlock("div", {
|
|
39812
40314
|
key: 7,
|
|
39813
40315
|
class: normalizeClass(["fv-msg-followups", `is-${__props.followupStyle}`]),
|
|
39814
40316
|
role: "listbox",
|
|
@@ -39840,7 +40342,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39840
40342
|
))
|
|
39841
40343
|
], 10, _hoisted_21)) : createCommentVNode("v-if", true)
|
|
39842
40344
|
]),
|
|
39843
|
-
createCommentVNode(" \u70B9\u8E29\u9644\u8A00\u5F39\u7A97:\u5C45\u4E2D\u5F39\u7A97(ElDialog,teleported + align-center),\u4E0D\u518D\u968F\u64CD\u4F5C\u533A\u5B9A\u4F4D\u2014\u2014\
|
|
40345
|
+
createCommentVNode(" \u70B9\u8E29\u9644\u8A00\u5F39\u7A97:\u5C45\u4E2D\u5F39\u7A97(ElDialog,teleported + align-center),\u4E0D\u518D\u968F\u64CD\u4F5C\u533A\u5B9A\u4F4D\u2014\u2014\n \u6700\u5E95\u4E00\u6761\u6D88\u606F\u7684\u9644\u8A00\u5C42\u5F80\u4E0B\u5F39\u4F1A\u88AB\u6EDA\u52A8\u533A\u88C1\u526A,\u4E0D\u6613\u6EDA\u5230\u5E95\u770B\u5230;\u5F39\u7A97\u5C45\u4E2D\u4E00\u5C4F\u5185\u53EF\u89C1\u3002\n \u70B9\u906E\u7F69/ESC \u5173\u95ED(\u8349\u7A3F\u4FDD\u7559\u5728\u672C\u5730,\u518D\u70B9 \u{1F44E} \u590D\u586B);submit/skip \u8BED\u4E49\u540C\u64CD\u4F5C\u533A\u6309\u94AE "),
|
|
39844
40346
|
feedbackVisible.value && !isToolOnlyRow.value ? (openBlock(), createBlock(unref(ElDialog), {
|
|
39845
40347
|
key: 1,
|
|
39846
40348
|
modelValue: dislikePopVisible.value,
|
|
@@ -40112,7 +40614,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
40112
40614
|
__expose({ scrollTo, scrollToBottom, scrollToTop, expandThoughtChains, collapseThoughtChains });
|
|
40113
40615
|
return (_ctx, _cache) => {
|
|
40114
40616
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
40115
|
-
createCommentVNode(" \u7A7A\u6001:Welcome(\u6587\u6848 + #suggestions \u5185 Prompts \u5FEB\u6377\u6761,\u6A2A\u6392:\u6587\u6848\u4E0E\u5FEB\u6377\u6761\u540C\u5217\u9760\u5DE6,\
|
|
40617
|
+
createCommentVNode(" \u7A7A\u6001:Welcome(\u6587\u6848 + #suggestions \u5185 Prompts \u5FEB\u6377\u6761,\u6A2A\u6392:\u6587\u6848\u4E0E\u5FEB\u6377\u6761\u540C\u5217\u9760\u5DE6,\n \u5409\u7965\u7269\u6D6E\u5C42\u4E0D\u88AB\u5FEB\u6377\u6761\u9876\u9AD8) "),
|
|
40116
40618
|
isEmpty.value ? (openBlock(), createElementBlock("div", _hoisted_2$2, [
|
|
40117
40619
|
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
40118
40620
|
createVNode(_sfc_main$8, {
|
|
@@ -40268,7 +40770,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
40268
40770
|
128
|
|
40269
40771
|
/* KEYED_FRAGMENT */
|
|
40270
40772
|
)),
|
|
40271
|
-
createCommentVNode(" \u6EDA\u5230\u5E95\u90E8\u60AC\u6D6E\u6309\u94AE:\u5728 fv-messages-inner \u5185,\u968F\u5185\u5BB9\u5BBD\u5EA6\u7EA6\u675F\u5C42\u5B9A\u4F4D(\u5BBD\u5C4F\u65F6\u4E0D\u8D34\u89C6\u53E3\u53F3\u7F18);\
|
|
40773
|
+
createCommentVNode(" \u6EDA\u5230\u5E95\u90E8\u60AC\u6D6E\u6309\u94AE:\u5728 fv-messages-inner \u5185,\u968F\u5185\u5BB9\u5BBD\u5EA6\u7EA6\u675F\u5C42\u5B9A\u4F4D(\u5BBD\u5C4F\u65F6\u4E0D\u8D34\u89C6\u53E3\u53F3\u7F18);\n \u8DDD\u5E95\u8D85\u8FC7 scrollButtonThreshold \u663E\u793A(\u7A7A\u6001\u4E0D\u6E32\u67D3);\n scroll-button \u63D2\u69FD\u6574\u4F53\u8986\u76D6\u6309\u94AE,scroll-button-icon \u63D2\u69FD\u4EC5\u8986\u76D6\u56FE\u6807\u5185\u5BB9 "),
|
|
40272
40774
|
createVNode(Transition, { name: "fv-messages-back-fade" }, {
|
|
40273
40775
|
default: withCtx(() => [
|
|
40274
40776
|
renderSlot(_ctx.$slots, "scroll-button", {
|
|
@@ -40425,7 +40927,7 @@ var _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
40425
40927
|
Fragment,
|
|
40426
40928
|
null,
|
|
40427
40929
|
[
|
|
40428
|
-
createCommentVNode(" activeKey \u4E3A\u7A7A\u65F6\u4E0D\u6E32\u67D3\u9762\u677F;\u5BBD\u5EA6\u7ECF CSS \u53D8\u91CF\u843D\u5730(width/min/max),\u6D88\u8D39\u65B9\u4EA6\u53EF\u7528\
|
|
40930
|
+
createCommentVNode(" activeKey \u4E3A\u7A7A\u65F6\u4E0D\u6E32\u67D3\u9762\u677F;\u5BBD\u5EA6\u7ECF CSS \u53D8\u91CF\u843D\u5730(width/min/max),\u6D88\u8D39\u65B9\u4EA6\u53EF\u7528\n --fv-artifacts-width \u7B49\u53D8\u91CF\u6574\u4F53\u8986\u76D6 "),
|
|
40429
40931
|
visible.value && current.value ? (openBlock(), createElementBlock(
|
|
40430
40932
|
"div",
|
|
40431
40933
|
{
|
|
@@ -41573,4 +42075,4 @@ function createMemoryAdapter() {
|
|
|
41573
42075
|
|
|
41574
42076
|
const version = "0.1.0";
|
|
41575
42077
|
|
|
41576
|
-
export { _sfc_main$1 as FvAiArtifacts, _sfc_main as FvAiChat, _sfc_main$3 as FvAiMessage, _sfc_main$2 as FvAiMessages, _sfc_main$5 as FvAttachments, _sfc_main$g as FvBubble, _sfc_main$f as FvBubbleList, FvCommonAdapter, FvCommonError, _sfc_main$4 as FvConversations, _sfc_main$b as FvEditorSender, _sfc_main$6 as FvFilesCard, _sfc_main$i as FvMarkdown, _sfc_main$c as FvMentionSender, _sfc_main$7 as FvPrompts, _sfc_main$d as FvSender, _sfc_main$a as FvThinking, _sfc_main$9 as FvThoughtChain, _sfc_main$h as FvTypewriter, _sfc_main$8 as FvWelcome, OpenAIAdapter, XRequest, configureLocale, createLocalStorageAdapter, createMemoryAdapter, createMessageTree, createSSEParser,
|
|
42078
|
+
export { _sfc_main$1 as FvAiArtifacts, _sfc_main as FvAiChat, _sfc_main$3 as FvAiMessage, _sfc_main$2 as FvAiMessages, _sfc_main$5 as FvAttachments, _sfc_main$g as FvBubble, _sfc_main$f as FvBubbleList, FvCommonAdapter, FvCommonError, _sfc_main$4 as FvConversations, _sfc_main$b as FvEditorSender, _sfc_main$6 as FvFilesCard, _sfc_main$i as FvMarkdown, _sfc_main$c as FvMentionSender, _sfc_main$7 as FvPrompts, _sfc_main$d as FvSender, _sfc_main$a as FvThinking, _sfc_main$9 as FvThoughtChain, _sfc_main$h as FvTypewriter, _sfc_main$8 as FvWelcome, OpenAIAdapter, XRequest, configureLocale, createLocalStorageAdapter, createMemoryAdapter, createMessageTree, createSSEParser, en, ko, parseSuggestions, useChat, useMessages, useRecord, useSend, useXStream, version, vi, zhCN, zhHK };
|