@fv-ui/ai-chat 1.7.0 → 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 +8 -8
- package/dist/index.d.ts +31 -15
- package/dist/style.css +1 -1
- package/es/index.mjs +63 -10
- package/lib/index.js +62 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -307,7 +307,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
307
307
|
| --- | --- | --- | --- |
|
|
308
308
|
| modelValue | boolean(v-model) | false | 展开/收起 |
|
|
309
309
|
| content | string | '' | 思考内容(常配合 #content 插槽嵌 FvMarkdown) |
|
|
310
|
-
| status | 'start' \| 'thinking' \| 'end' \| 'error' | 'start' | 思考状态 |
|
|
310
|
+
| status | 'start' \| 'thinking' \| 'end' \| 'interrupted' \| 'error' | 'start' | 思考状态(interrupted 为用户中断态,警告橙图标) |
|
|
311
311
|
| disabled | boolean | false | 禁用切换 |
|
|
312
312
|
| autoCollapse | boolean | false | status 变为 end 时自动收起 |
|
|
313
313
|
| hideHeader | boolean | false | 隐藏折叠头(单 item 链平铺形态):不渲染切换按钮,内容区常驻展开 |
|
|
@@ -519,7 +519,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
519
519
|
| senderShadow | boolean | true | 输入区阴影效果(透传 Sender 的 shadow) |
|
|
520
520
|
| suggestions | AiChatSuggestion[] | [] | 空态建议列表(Prompts 项,key 必填;空态快捷条为胶囊形态,description 不显示) |
|
|
521
521
|
| suggestionsWrap | boolean | true | 空态建议换行模式(true 自动换行;false 不换行,超出横向滚动) |
|
|
522
|
-
| followupStyle | 'list' \| 'chips' | 'list' | 追问建议展示样式(透传 AiMessages→AiMessage):'list' 纵向列表一行一条,渲染在回答操作区下方,顶部灰色分隔线 +
|
|
522
|
+
| followupStyle | 'list' \| 'chips' | 'list' | 追问建议展示样式(透传 AiMessages→AiMessage):'list' 纵向列表一行一条,渲染在回答操作区下方,顶部灰色分隔线 + **加粗**「追问」标题(字号/颜色随正文,标题文案经语言包 `aiMessage.followupsTitle` 自定义),条目 100% 宽、下划线分隔、字号随正文,历史消息同样渲染;'chips' 为旧横向气泡形态(换行铺排,无标题)。**正文打字效果完成后才渲染**(流式 suggestions 事件到达不显示,落定+打完字整体浮现) |
|
|
523
523
|
| features | AiChatFeatures | {} | 特性开关 { artifacts?, tts?, queue?, continueGenerate?, fullscreenEditor? }(当前仅 artifacts 生效);artifacts 传 `true` 用默认配置,传对象 `{ width?, minWidth?, maxWidth?, autoOpen?, codeBlockTrigger? }` 自定义:宽度三参控面板尺寸(默认 420px/360px/60%),autoOpen(默认 true)检测到代码块自动弹面板,codeBlockTrigger(默认 true)在消息 html/svg 代码块右上角显示「预览」按钮、点击打开对应面板 |
|
|
524
524
|
| allowAttachments | boolean | false | 开启输入区附件上传(回形针在操作栏左侧与提交按钮同行,已选列表在输入框上方;只传附件不输文字也可提交) |
|
|
525
525
|
| accept | string | '' | 附件 input accept 属性(透传 Attachments),如 `image/*,.pdf,.txt`。缺省 '' 不限制(zip/exe 等是否可传由消费方自主决定);显式传值时除选择器过滤外组件内注入 beforeUpload 硬校验——白名单外文件(选择器切「所有文件」绕过 accept)不入列,自动 toast 提示(文案经语言包 `errors.attachmentRejected` 自定义,`{name}` 为文件名)并上抛 @attachment-reject |
|
|
@@ -537,7 +537,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
537
537
|
| update:messages | (MessageNode[]) 全量消息链(去抖后) |
|
|
538
538
|
| send | (text, files?) 用户发送(allowAttachments 开启时 files 为降维后的 ChatFile[]) |
|
|
539
539
|
| suggestion-select | (item) 点击空态建议项(先于 send 触发;label 为空的项不发) |
|
|
540
|
-
| followup-select | (item, message) 点击回答尾部追问建议(先于 send 触发;组件内部已接住转 send 开启新一轮,事件仅供消费方可观测/埋点;assistant 消息带 suggestions
|
|
540
|
+
| followup-select | (item, message) 点击回答尾部追问建议(先于 send 触发;组件内部已接住转 send 开启新一轮,事件仅供消费方可观测/埋点;assistant 消息带 suggestions 即渲染,不再限链尾——历史消息同样显示;正文打字效果完成后才渲染) |
|
|
541
541
|
| message-complete | (message) 链尾 assistant 生成完成 |
|
|
542
542
|
| error | (err, message?) 生成出错 |
|
|
543
543
|
| branch-change | (dir, message) 分支切换 |
|
|
@@ -612,7 +612,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
612
612
|
| timeFormat | (message, timestamp) => string | undefined | 消息时间自定义格式化(透传 AiMessage) |
|
|
613
613
|
| autoCollapse | boolean | true | 正文出完自动收起思考链(透传 AiMessage;status 落 done 且正文打完才收;error 不收) |
|
|
614
614
|
| resolveFileUrl | (file: ChatFile) => Promise\<string\> \| string | undefined | 附件地址解析钩子(透传 AiMessage;鉴权取流换可直渲地址,见 AiChat) |
|
|
615
|
-
| followupStyle | 'list' \| 'chips' | 'list' | 追问建议展示样式(透传 AiMessage;默认 'list'
|
|
615
|
+
| followupStyle | 'list' \| 'chips' | 'list' | 追问建议展示样式(透传 AiMessage;默认 'list' 纵向列表——顶部灰色分隔线 + 加粗「追问」标题(字号/颜色随正文)、条目 100% 宽下划线分隔字号随正文;'chips' 旧横向气泡,见 AiChat)。**正文打字效果完成后才渲染**(流式 suggestions 事件到达不显示) |
|
|
616
616
|
| feedbackHandler | (message, action, comment?) => Promise\<unknown\> \| unknown | undefined | 消息评价提交钩子(透传 AiMessage;语义见 AiChat,缺省不渲染 👍/👎) |
|
|
617
617
|
| locale | LocaleInput(string \| 对象) | undefined | 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) |
|
|
618
618
|
|
|
@@ -673,7 +673,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
673
673
|
| showTime | boolean | true | 显示消息时间(操作区按钮之后;时间源:message.createdTime(秒级/毫秒级时间戳或 ISO 字符串自动识别)优先,缺省回落 message.createdAt;两者皆无则不渲染。助手消息 SSE 生成中不显示,正文打完字(未启用打字机则落定)后才显示;error 即显;user 消息恒显示) |
|
|
674
674
|
| timeFormat | (message, timestamp) => string | undefined | 消息时间自定义格式化(透传消息与已归一为 ms 的时间戳;缺省 'YYYY-MM-DD HH:mm',本机时区) |
|
|
675
675
|
| codeTriggerLangs | string[] | — | 代码块「预览」触发语言(透传 Markdown/Typewriter;命中语言的代码块右上角注入按钮,点击行为由消费方事件委托实现) |
|
|
676
|
-
| followupStyle | 'list' \| 'chips' | 'list' | 追问建议展示样式:'list'(默认)纵向列表一行一条,渲染在操作区(工具栏)下方,顶部灰色分隔线 +
|
|
676
|
+
| followupStyle | 'list' \| 'chips' | 'list' | 追问建议展示样式:'list'(默认)纵向列表一行一条,渲染在操作区(工具栏)下方,顶部灰色分隔线 + **加粗**「追问」标题(字号/颜色随正文,经语言包 `aiMessage.followupsTitle` 自定义),条目 100% 宽、下划线分隔、字号随正文;'chips' 旧横向气泡形态(换行铺排,无标题)。assistant 消息带 suggestions 即渲染——历史消息同样显示,不再限链尾;**正文打字效果完成后才渲染**(流式 suggestions 事件到达不显示,落定+打完字整体浮现) |
|
|
677
677
|
| resolveFileUrl | (file: ChatFile) => Promise\<string\> \| string | undefined | 附件地址解析钩子:渲染附件 url 前调用,返回可直渲地址(如 JWT fetch 换 blob objectURL);缺省原样使用 url(blob/dataURL/公开地址),远端地址解析结果按 url 缓存 + 在途去重,失败回落原 url |
|
|
678
678
|
| feedbackHandler | (message, action: 'LIKE' \| 'DISLIKE' \| 'CLEAR', comment?) => Promise\<unknown\> \| unknown | undefined | 消息评价提交钩子:仅 assistant 最终回答行(role=assistant 且 status=done,error/中断/生成中不渲染)渲染 👍/👎,缺省不渲染按钮。点击 👍 直接提交,点击 👎 弹**居中附言弹窗**(ElDialog,textarea ≤500 字 + 提交/跳过,点遮罩/ESC 关闭草稿保留、再点 👎 复填),再次点击当前态按钮发 CLEAR;乐观更新——先翻转 message.feedback 再调钩子,失败回滚并经 feedback-error 上抛,成功经 feedback-change 上抛;返回 resolved 即成功,返回错误文案串/抛错均视为失败。**弹窗标题/占位可自定义**(语言包 `aiMessage.feedback.dislikeTitle`/`dislikePlaceholder`;标题 `{name}` 占位渲染时替换为 assistantName,空串回落 defaultAssistantName) |
|
|
679
679
|
| locale | LocaleInput(string \| 对象) | undefined | 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) |
|
|
@@ -683,7 +683,7 @@ Markdown 渲染(Sanitized by DOMPurify),内置 Prism 代码高亮与 KaTeX。
|
|
|
683
683
|
| Event | 说明 |
|
|
684
684
|
| --- | --- |
|
|
685
685
|
| copy / regenerate / branch-change | (message) / (message) / (dir, message) |
|
|
686
|
-
| followup-select | (item, message) 点击追问建议(item 为建议文本;assistant 消息带 suggestions
|
|
686
|
+
| followup-select | (item, message) 点击追问建议(item 为建议文本;assistant 消息带 suggestions 即渲染——历史消息同样显示,不限链尾;**正文打字效果完成后才渲染**,落定后可点;AiChat 内部已接住转 send,直接用 AiMessage 时的消费方需自行接管发送) |
|
|
687
687
|
| file-click | (file, message) 点击附件:图片缩略图默认打开内置 ElImageViewer 放大(同消息多图轮播,url 经 resolveFileUrl 解析);文档附件渲染为 FilesCard 卡片(类型图标 + 名称/大小,复用输入区同款),卡片右上角 28px 下载按钮(hover 浮现)——点击内置触发浏览器下载(url 经 resolveFileUrl 解析),不触发本事件;点击卡片本体仅上抛本事件(无内置下载行为,宿主可埋点/接管) |
|
|
688
688
|
| feedback-change | (message, action: 'LIKE' \| 'DISLIKE' \| 'CLEAR') 评价提交成功(乐观落定后触发;message.feedback 已更新,宿主可埋点/联动) |
|
|
689
689
|
| feedback-error | (message: string) 评价提交失败(钩子 reject/返回错误文案;乐观更新已回滚,message 为错误文案) |
|
|
@@ -772,7 +772,7 @@ const adapter = FvCommonAdapter({
|
|
|
772
772
|
- 同步段失败(Content-Type 非 `text/event-stream`)按 JSON 错误 `{code,message}` 走 `onError`;命中 `errorMessages` 时用映射文案(带 `code` 的 `FvCommonError`)
|
|
773
773
|
- `message_end` 的 `messageId`(最终文本行 id)经 `onBackendMessageId` 回填到 `MessageNode.backendId`——多轮工具循环下与 `message_start` 的首轮 id 不同,UI 落库/对账以它为准
|
|
774
774
|
- `tool` 事件经 `onTool` → `useChat.onToolEvent` → `AiChat @tool-event` 上抛,消费方展示「正在查询库存…」等中间态
|
|
775
|
-
- 追问建议(V58+):`suggestions` 事件(流式收尾 0..1 次,最后一个 delta 后、message_end 前,载荷 `{items: string[]}`)经可选 `onSuggestions` 上抛,`useChat` 回写 `MessageNode.suggestions`,AiMessage 对带 suggestions 的 assistant 消息渲染追问(
|
|
775
|
+
- 追问建议(V58+):`suggestions` 事件(流式收尾 0..1 次,最后一个 delta 后、message_end 前,载荷 `{items: string[]}`)经可选 `onSuggestions` 上抛,`useChat` 回写 `MessageNode.suggestions`,AiMessage 对带 suggestions 的 assistant 消息渲染追问(默认纵向列表样式——顶部灰色分隔线 + 加粗「追问」标题、条目 100% 宽下划线分隔字号随正文,`followupStyle='chips'` 切回横向气泡;**正文打字效果完成后才渲染**,流式事件到达不显示,历史消息同样渲染,不再限链尾);开关关闭/模型未产出/中断/失败无此事件;历史恢复用导出的 `parseSuggestions(raw)` 安全解析 `FvCommonMessage.suggestions`(JSON 数组原文透传,脏数据按无建议)
|
|
776
776
|
- 消息评价(V58+):`FvCommonMessage.feedback`(LIKE/DISLIKE,未评价/旧数据恒 null)、`feedbackComment`(附言 ≤500 字)、`feedbackTime`(评价落库时间)三字段同款容错;历史恢复由消费方映射为 `MessageNode.feedback` 灌入展示;评价提交走独立端点(POST /message/feedback),不经本适配器——接 `AiChat` 的 `feedbackHandler` 钩子即可
|
|
777
777
|
- 附件快照(1.4.1+):user 行 `FvCommonMessage.attachments`(id/originalName/type/suffix/sizeBytes/downloadUrl,旧数据/无附件恒 null),历史回放映射 `MessageNode.files` 渲染(图片缩略图 + 文档 FilesCard 卡片,卡片右上 28px 下载按钮 hover 浮现可下载;downloadUrl 需鉴权取流时配 `resolveFileUrl` 钩子,下载/预览均走解析后地址)
|
|
778
778
|
- 配套 DTO 类型:`FvCommonSessionItem` / `FvCommonMessage` / `FvCommonSessionDetail` / `FvCommonMessagePage`(消费方直接调会话管理端点时用)
|
|
@@ -908,7 +908,7 @@ configureLocale(jaJP)
|
|
|
908
908
|
| 分组 | key | zh-CN | en |
|
|
909
909
|
| --- | --- | --- | --- |
|
|
910
910
|
| common | copy / delete / confirm / cancel / retry / close / preview / clear / stop / send / download / fullscreen / collapse / expand | 复制 / 删除 / 确定 / 取消 / 重传 / 关闭 / 预览 / 清空 / 停止 / 发送 / 下载 / 全屏 / 收起 / 展开 | Copy / Delete / OK / Cancel / Retry / Close / Preview / Clear / Stop / Send / Download / Fullscreen / Collapse / Expand |
|
|
911
|
-
| thinking | start / thinking / end / error / endWithTools / thinkingItem / thoughtDoneItem | 开始思考 / 思考中... / 思考完成 / 思考遇到问题 / 思考完成,使用 {n} 个工具 / 正在思考 / 思考完成 | Thinking / Thinking... / Thought complete / Something went wrong / Thought complete, used {n} tools / Thinking / Thought complete |
|
|
911
|
+
| thinking | start / thinking / end / interrupted / error / endWithTools / interruptedWithTools / thinkingItem / thoughtDoneItem | 开始思考 / 思考中... / 思考完成 / 思考中断 / 思考遇到问题 / 思考完成,使用 {n} 个工具 / 思考中断,使用 {n} 个工具 / 正在思考 / 思考完成 | Thinking / Thinking... / Thought complete / Thought interrupted / Something went wrong / Thought complete, used {n} tools / Thought interrupted, used {n} tools / Thinking / Thought complete |
|
|
912
912
|
| welcome | greetingPrefix / greetingName / description | 你好,我是 ␣ / Gizmo / 我可以帮你查询数据、分析问题、生成报表、以及执行系统操作,让生产管理更高效。 | Hello, I am ␣ / Gizmo / I can help you query data, analyze problems, generate reports, and perform system operations... |
|
|
913
913
|
| sender | clear / stop / send / speech / recordCancel / recordConfirm / micUnavailable / inputPlaceholder | 清空 / 停止 / 发送 / 语音输入 / 取消录音 / 确认录音 / 无法访问麦克风 / 输入你的问题,查询数据、分析问题或生成报表… | Clear / Stop / Send / Voice input / Cancel recording / Confirm recording / Microphone unavailable / Ask a question — query data, analyze problems, or generate reports… |
|
|
914
914
|
| editorSender | clear / stop / send / inputPlaceholder / selectTagTitle / loading / tagTip | 清空 / 停止 / 发送 / 请输入 / 选择标签 / 加载中… / 填写内容后回车确认 | Clear / Stop / Send / Type something... / Select a tag / Loading... / Type and press Enter to confirm |
|
package/dist/index.d.ts
CHANGED
|
@@ -48,9 +48,13 @@ declare const zhCN: {
|
|
|
48
48
|
start: string;
|
|
49
49
|
thinking: string;
|
|
50
50
|
end: string;
|
|
51
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
52
|
+
interrupted: string;
|
|
51
53
|
error: string;
|
|
52
54
|
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
53
55
|
endWithTools: string;
|
|
56
|
+
/** 多 item 总折叠头汇总文案(用户中断态,带工具次数;{n} = 工具步数量) */
|
|
57
|
+
interruptedWithTools: string;
|
|
54
58
|
/** 思考链 text 步标题(进行中/已完结) */
|
|
55
59
|
thinkingItem: string;
|
|
56
60
|
thoughtDoneItem: string;
|
|
@@ -218,8 +222,10 @@ declare const PACKS: {
|
|
|
218
222
|
start: string;
|
|
219
223
|
thinking: string;
|
|
220
224
|
end: string;
|
|
225
|
+
interrupted: string;
|
|
221
226
|
error: string;
|
|
222
227
|
endWithTools: string;
|
|
228
|
+
interruptedWithTools: string;
|
|
223
229
|
thinkingItem: string;
|
|
224
230
|
thoughtDoneItem: string;
|
|
225
231
|
};
|
|
@@ -345,8 +351,10 @@ declare const PACKS: {
|
|
|
345
351
|
start: string;
|
|
346
352
|
thinking: string;
|
|
347
353
|
end: string;
|
|
354
|
+
interrupted: string;
|
|
348
355
|
error: string;
|
|
349
356
|
endWithTools: string;
|
|
357
|
+
interruptedWithTools: string;
|
|
350
358
|
thinkingItem: string;
|
|
351
359
|
thoughtDoneItem: string;
|
|
352
360
|
};
|
|
@@ -472,8 +480,10 @@ declare const PACKS: {
|
|
|
472
480
|
start: string;
|
|
473
481
|
thinking: string;
|
|
474
482
|
end: string;
|
|
483
|
+
interrupted: string;
|
|
475
484
|
error: string;
|
|
476
485
|
endWithTools: string;
|
|
486
|
+
interruptedWithTools: string;
|
|
477
487
|
thinkingItem: string;
|
|
478
488
|
thoughtDoneItem: string;
|
|
479
489
|
};
|
|
@@ -599,8 +609,10 @@ declare const PACKS: {
|
|
|
599
609
|
start: string;
|
|
600
610
|
thinking: string;
|
|
601
611
|
end: string;
|
|
612
|
+
interrupted: string;
|
|
602
613
|
error: string;
|
|
603
614
|
endWithTools: string;
|
|
615
|
+
interruptedWithTools: string;
|
|
604
616
|
thinkingItem: string;
|
|
605
617
|
thoughtDoneItem: string;
|
|
606
618
|
};
|
|
@@ -726,8 +738,10 @@ declare const PACKS: {
|
|
|
726
738
|
start: string;
|
|
727
739
|
thinking: string;
|
|
728
740
|
end: string;
|
|
741
|
+
interrupted: string;
|
|
729
742
|
error: string;
|
|
730
743
|
endWithTools: string;
|
|
744
|
+
interruptedWithTools: string;
|
|
731
745
|
thinkingItem: string;
|
|
732
746
|
thoughtDoneItem: string;
|
|
733
747
|
};
|
|
@@ -1647,13 +1661,13 @@ type __VLS_WithSlots$a<T, S> = T & {
|
|
|
1647
1661
|
};
|
|
1648
1662
|
};
|
|
1649
1663
|
|
|
1650
|
-
type ThinkingStatus = 'start' | 'thinking' | 'end' | 'error';
|
|
1664
|
+
type ThinkingStatus = 'start' | 'thinking' | 'end' | 'interrupted' | 'error';
|
|
1651
1665
|
type __VLS_Props$a = {
|
|
1652
1666
|
/** 展开/收起(v-model) */
|
|
1653
1667
|
modelValue?: boolean;
|
|
1654
1668
|
/** 思考内容(#content 插槽常嵌 FvMarkdown/Typewriter 渲染思考流) */
|
|
1655
1669
|
content?: string;
|
|
1656
|
-
/** 思考状态:start 起始 / thinking 思考中 / end 完成 / error 出错 */
|
|
1670
|
+
/** 思考状态:start 起始 / thinking 思考中 / end 完成 / interrupted 用户中断 / error 出错 */
|
|
1657
1671
|
status?: ThinkingStatus;
|
|
1658
1672
|
/** 禁用切换 */
|
|
1659
1673
|
disabled?: boolean;
|
|
@@ -1672,23 +1686,23 @@ type __VLS_Props$a = {
|
|
|
1672
1686
|
/** 语言包:'zh-CN'/'en'/'ko'/'vi'/'zh-HK' 整包或部分文案对象(优先于祖先注入与全局设置) */
|
|
1673
1687
|
locale?: LocaleInput;
|
|
1674
1688
|
};
|
|
1675
|
-
/** 切换门控:start 起始态不可切换;thinking 中可展开查看思考流,end/error 后可自由收起展开 */
|
|
1689
|
+
/** 切换门控:start 起始态不可切换;thinking 中可展开查看思考流,end/interrupted/error 后可自由收起展开 */
|
|
1676
1690
|
declare function toggle(): void;
|
|
1677
1691
|
declare var __VLS_1$6: {};
|
|
1678
|
-
declare var
|
|
1679
|
-
declare var
|
|
1680
|
-
declare var
|
|
1681
|
-
declare var
|
|
1692
|
+
declare var __VLS_47$1: {};
|
|
1693
|
+
declare var __VLS_49$1: {};
|
|
1694
|
+
declare var __VLS_62: {};
|
|
1695
|
+
declare var __VLS_64$1: {};
|
|
1682
1696
|
type __VLS_Slots$9 = {} & {
|
|
1683
1697
|
'status-icon'?: (props: typeof __VLS_1$6) => any;
|
|
1684
1698
|
} & {
|
|
1685
|
-
label?: (props: typeof
|
|
1699
|
+
label?: (props: typeof __VLS_47$1) => any;
|
|
1686
1700
|
} & {
|
|
1687
|
-
arrow?: (props: typeof
|
|
1701
|
+
arrow?: (props: typeof __VLS_49$1) => any;
|
|
1688
1702
|
} & {
|
|
1689
|
-
error?: (props: typeof
|
|
1703
|
+
error?: (props: typeof __VLS_62) => any;
|
|
1690
1704
|
} & {
|
|
1691
|
-
content?: (props: typeof
|
|
1705
|
+
content?: (props: typeof __VLS_64$1) => any;
|
|
1692
1706
|
};
|
|
1693
1707
|
declare const __VLS_base$9: vue.DefineComponent<__VLS_Props$a, {
|
|
1694
1708
|
modelValue: vue.Ref<boolean, boolean>;
|
|
@@ -2521,7 +2535,7 @@ type __VLS_Props$3 = {
|
|
|
2521
2535
|
isLast?: boolean;
|
|
2522
2536
|
/**
|
|
2523
2537
|
* 追问建议展示样式(默认 'list'):
|
|
2524
|
-
* - list
|
|
2538
|
+
* - list 纵向列表:一行一条,操作区下方带分隔线与加粗「追问」标题(字号/颜色随正文);
|
|
2525
2539
|
* - chips 横向气泡:横向换行铺排的胶囊 chips(旧样式)
|
|
2526
2540
|
*/
|
|
2527
2541
|
followupStyle?: 'list' | 'chips';
|
|
@@ -2760,7 +2774,8 @@ type __VLS_Props$2 = {
|
|
|
2760
2774
|
timeFormat?: (message: MessageNode, timestamp: number) => string;
|
|
2761
2775
|
/**
|
|
2762
2776
|
* 追问建议展示样式(透传 AiMessage;默认 'list' 纵向列表一行一条,
|
|
2763
|
-
*
|
|
2777
|
+
* 操作区下方带分隔线与加粗「追问」标题(字号/颜色随正文),正文打字效果
|
|
2778
|
+
* 完成后才渲染(流式 suggestions 事件到达不显示);'chips' 为旧横向气泡形态)
|
|
2764
2779
|
*/
|
|
2765
2780
|
followupStyle?: 'list' | 'chips';
|
|
2766
2781
|
/**
|
|
@@ -3020,7 +3035,8 @@ type __VLS_Props$1 = {
|
|
|
3020
3035
|
suggestionsWrap?: boolean;
|
|
3021
3036
|
/**
|
|
3022
3037
|
* 追问建议展示样式(透传 AiMessages→AiMessage;默认 'list' 纵向列表一行一条,
|
|
3023
|
-
*
|
|
3038
|
+
* 回答操作区下方带分隔线与加粗「追问」标题(字号/颜色随正文),历史消息同样渲染;
|
|
3039
|
+
* 正文打字效果完成后才渲染(流式 suggestions 事件到达不显示);
|
|
3024
3040
|
* 'chips' 为旧横向气泡形态)
|
|
3025
3041
|
*/
|
|
3026
3042
|
followupStyle?: 'list' | 'chips';
|
|
@@ -3223,13 +3239,13 @@ declare const __VLS_base: vue.DefineComponent<__VLS_Props$1, {
|
|
|
3223
3239
|
timeFormat: (message: MessageNode, timestamp: number) => string;
|
|
3224
3240
|
resolveFileUrl: (file: ChatFile) => Promise<string> | string;
|
|
3225
3241
|
feedbackHandler: FeedbackHandler;
|
|
3242
|
+
showHeader: boolean;
|
|
3226
3243
|
suggestionsWrap: boolean;
|
|
3227
3244
|
scrollThreshold: number;
|
|
3228
3245
|
showScrollButton: boolean;
|
|
3229
3246
|
scrollButtonThreshold: number;
|
|
3230
3247
|
models: string[];
|
|
3231
3248
|
adapter: ChatAdapter;
|
|
3232
|
-
showHeader: boolean;
|
|
3233
3249
|
centerWelcome: boolean;
|
|
3234
3250
|
senderAutosize: {
|
|
3235
3251
|
minRows?: number;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.fv-markdown{color:var(--el-text-color-primary,#303133);line-height:1.7;word-break:break-word}.fv-markdown h1,.fv-markdown h2,.fv-markdown h3,.fv-markdown h4,.fv-markdown h5,.fv-markdown h6{color:var(--el-text-color-primary,#303133);font-weight:600;margin:1em 0 .5em}.fv-markdown h1{font-size:1.5em}.fv-markdown h2{font-size:1.3em}.fv-markdown h3{font-size:1.15em}.fv-markdown p{margin:.5em 0}.fv-markdown ol,.fv-markdown ul{margin:.5em 0;padding-left:2em}.fv-markdown ol ol,.fv-markdown ol ul,.fv-markdown ul ol,.fv-markdown ul ul{margin:.2em 0}.fv-markdown ul{list-style:disc}.fv-markdown ol{list-style:decimal}.fv-markdown ul ul{list-style:circle}.fv-markdown ul ul ul{list-style:square}.fv-markdown li{margin:.2em 0}.fv-markdown a{color:var(--el-color-primary,#409eff);text-decoration:none}.fv-markdown a:hover{text-decoration:underline}.fv-markdown blockquote{border-left:4px solid var(--el-border-color,#dcdfe6);color:var(--el-text-color-regular,#606266);margin:.5em 0;padding:.4em 1em}.fv-markdown blockquote,.fv-markdown code{background:var(--el-fill-color-light,#f5f7fa)}.fv-markdown code{border-radius:3px;color:var(--el-color-danger,#f56c6c);font-family:JetBrains Mono,Consolas,Courier New,monospace;font-size:.9em;padding:.15em .4em}.fv-markdown pre{background:#282c34;border-radius:6px;margin:.5em 0;overflow-x:auto;padding:1em}.fv-markdown pre code{background:transparent;color:#dcdfe6;font-size:.9em;line-height:1.6;padding:0}.fv-markdown pre.fv-md-code-pre{padding-top:2em;position:relative}.fv-markdown pre.fv-md-code-pre .fv-md-code-trigger{background:hsla(0,0%,100%,.12);border:1px solid hsla(0,0%,100%,.22);border-radius:var(--el-border-radius-base,4px);color:#dcdfe6;cursor:pointer;font-size:var(--el-font-size-small,12px);line-height:1.5;padding:2px 10px;position:absolute;right:8px;top:6px}.fv-markdown pre.fv-md-code-pre .fv-md-code-trigger:hover{background:hsla(0,0%,100%,.22);color:#fff}.fv-markdown table{border-collapse:collapse;margin:.5em 0;width:100%}.fv-markdown table td,.fv-markdown table th{border:1px solid var(--el-border-color-lighter,#ebeef5);padding:.5em .8em;text-align:left}.fv-markdown table th{background:var(--el-fill-color-lighter,#fafafa);font-weight:600}.fv-markdown table tr:nth-child(2n) td{background:var(--el-fill-color-blank,#fafcff)}.fv-markdown .fv-md-table-wrap{margin:.5em 0}.fv-markdown .fv-md-table-wrap table{margin:0}.fv-markdown .fv-md-table-bar{background:var(--el-fill-color-light,#f5f7fa);border:1px solid var(--el-border-color-lighter,#ebeef5);border-bottom:none;border-radius:3px 3px 0 0;display:flex;gap:4px;justify-content:flex-end;padding:2px 4px}.fv-markdown .fv-md-table-btn{align-items:center;background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:inline-flex;height:24px;justify-content:center;padding:0;width:24px}.fv-markdown .fv-md-table-btn:hover{background:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-markdown .fv-md-table-btn svg{display:block;height:14px;width:14px}.fv-markdown .fv-md-table-btn .fv-md-table-ic.is-check,.fv-markdown .fv-md-table-btn.is-copied .fv-md-table-ic{display:none}.fv-markdown .fv-md-table-btn.is-copied .fv-md-table-ic.is-check{display:block}.fv-markdown .fv-md-table-btn.is-copied{color:var(--el-color-success,#67c23a)}.fv-markdown .katex-display{margin:.5em 0;overflow-x:auto}.fv-md-table-tip{background:#303133;border-radius:var(--el-border-radius-base,4px);box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));color:#fff;display:none;font-size:var(--el-font-size-base,12px);line-height:1.4;padding:5px 11px;pointer-events:none;position:fixed;transform:translate(-50%,calc(-100% - 8px));white-space:nowrap;z-index:calc(var(--el-index-popper, 2000) - 1)}.fv-md-table-tip:after{background:inherit;bottom:-4px;content:"";height:8px;left:50%;position:absolute;transform:translateX(-50%) rotate(45deg);width:8px}.fv-typewriter{display:inline-block;max-width:100%;position:relative}.fv-typewriter .fv-typewriter-text{white-space:pre-wrap;word-break:break-word}.fv-typewriter .fv-typewriter-suffix{animation:fv-typewriter-blink 1s step-start infinite;display:inline-block}.fv-typewriter .fv-typewriter-fog{animation:fv-typewriter-fog-in .3s ease-out both;background:linear-gradient(90deg,transparent,var(--fv-typewriter-fog-color,var(--el-bg-color,#fff)));bottom:0;pointer-events:none;position:absolute;right:0;top:0}@keyframes fv-typewriter-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes fv-typewriter-fog-in{0%{opacity:0}to{opacity:1}}.fv-bubble{align-items:flex-start;display:flex;gap:var(--fv-bubble-avatar-gap,12px)}.fv-bubble.is-end{flex-direction:row-reverse;justify-content:flex-end}.fv-bubble.is-end .fv-bubble-main{align-items:flex-end}.fv-bubble .fv-bubble-avatar{display:flex;flex-shrink:0}.fv-bubble .fv-bubble-avatar .el-avatar{height:var(--fv-bubble-avatar-size,36px);width:var(--fv-bubble-avatar-size,36px)}.fv-bubble .fv-bubble-main{align-items:flex-start;display:flex;flex:1;flex-direction:column;max-width:100%;min-width:0}.fv-bubble .fv-bubble-main .fv-bubble-footer,.fv-bubble .fv-bubble-main .fv-bubble-header{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px)}.fv-bubble .fv-bubble-main .fv-bubble-footer{margin-top:4px}.fv-bubble .fv-bubble-content{border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);max-width:100%;min-width:0;padding:var(--el-main-padding,12px) calc(var(--el-main-padding, 12px) + 4px);position:relative;word-break:break-word}.fv-bubble .fv-bubble-content.no-padding{padding:0}.fv-bubble .fv-bubble-content .fv-bubble-text{white-space:pre-wrap}.fv-bubble.shape-round .fv-bubble-content{border-radius:var(--el-border-radius-round,20px)}.fv-bubble.shape-corner .fv-bubble-content{border-start-start-radius:calc(var(--el-border-radius-base, 4px) - 2px)}.fv-bubble.is-end.shape-corner .fv-bubble-content{border-start-end-radius:calc(var(--el-border-radius-base, 4px) - 2px);border-start-start-radius:calc(var(--el-border-radius-base, 4px) + 4px)}.fv-bubble.variant-borderless .fv-bubble-content,.fv-bubble.variant-filled .fv-bubble-content{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-bubble.variant-borderless .fv-bubble-content,.fv-bubble.variant-outlined .fv-bubble-content{border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6)}.fv-bubble.variant-outlined .fv-bubble-content{background:none}.fv-bubble.variant-shadow .fv-bubble-content{background:none;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12))}.fv-bubble .fv-bubble-content.no-style{background:transparent;border:none;box-shadow:none;padding:0}.fv-bubble .fv-bubble-loading{align-items:center;display:flex;gap:5px;min-height:1em;width:fit-content}.fv-bubble .fv-bubble-loading .fv-bubble-loading-dot{animation:fv-bubble-wave 1s ease-in-out infinite;background-color:var(--el-color-primary,#409eff);border-radius:50%;height:5px;width:5px}@keyframes fv-bubble-wave{0%,to{transform:translateY(-2px)}50%{transform:translateY(2px)}}.fv-bubble-list{display:flex;flex-direction:column;min-height:0;position:relative}.fv-bubble-list .fv-bubble-list-scroll{display:flex;flex-direction:column;gap:16px;min-height:0;overflow-y:auto}.fv-bubble-list .fv-bubble-list-scroll>.fv-bubble{flex-shrink:0}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar{overflow-y:scroll;scrollbar-width:auto}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar::-webkit-scrollbar{-webkit-appearance:none;width:6px}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar::-webkit-scrollbar-thumb{background-color:var(--el-border-color,#dcdfe6);border-radius:3px}.fv-bubble-list .fv-bubble-list-back{align-items:center;bottom:16px;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));display:inline-flex;justify-content:center;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.fv-bubble-list .fv-bubble-list-back .fv-bubble-list-back-icon{align-items:center;display:inline-flex;justify-content:center;line-height:1}.fv-bubble-list-fade-enter-active,.fv-bubble-list-fade-leave-active{transition:opacity .2s ease,transform .2s ease}.fv-bubble-list-fade-enter-from,.fv-bubble-list-fade-leave-to{opacity:0;transform:translate(-50%,4px)}.fv-sender{box-sizing:border-box;display:flex;flex-direction:column;width:100%}.fv-sender .fv-sender-header{animation:fv-sender-slide-down .3s ease;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);max-height:300px;overflow:hidden;padding:8px 12px}.fv-sender .fv-sender-body{background-color:var(--el-fill-color-blank,#fff);border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);display:flex;flex-direction:column;gap:6px;padding:8px 12px;transition:border-color .2s}.fv-sender .fv-sender-body .fv-sender-body-top:empty{display:none}.fv-sender .fv-sender-body .fv-sender-row{align-items:flex-end;display:flex;gap:8px}.fv-sender .fv-sender-body .fv-sender-prefix{align-items:center;align-self:center;display:flex;flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-recording{align-items:center;background-color:var(--el-color-primary-light-9,#ecf5ff);border-radius:calc(var(--el-border-radius-base, 4px) + 2px);display:flex;flex:1;gap:8px;min-width:0;outline:none;padding:4px 8px}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-cancel{flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-cancel:hover{color:var(--el-color-danger,#f56c6c)}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-wave{align-items:center;direction:rtl;display:flex;flex:1;gap:2px;height:22px;justify-content:flex-end;min-width:0;overflow:hidden}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-wave .fv-sender-recording-bar{background-color:var(--el-color-primary,#409eff);border-radius:1px;flex-shrink:0;min-height:2px;opacity:.75;width:2px}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-duration{color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:var(--el-font-size-small,12px);font-variant-numeric:tabular-nums;min-width:3em;text-align:center}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-confirm{flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-input{display:flex;flex:1;min-width:0;position:relative}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea{background:transparent;border:none;box-sizing:border-box;color:var(--el-text-color-primary,#303133);flex:1;font:inherit;font-family:inherit;font-size:var(--el-font-size-base,14px);line-height:22px;min-width:0;outline:none;padding:4px 0;resize:none}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea::placeholder{color:var(--el-text-color-placeholder,#a8abb2)}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea:disabled{color:var(--el-text-color-disabled,#a8abb2);cursor:not-allowed}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea[readonly]{cursor:default}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-trigger-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-sender .fv-sender-body .fv-sender-actions{align-items:center;align-self:flex-end;display:flex;flex-shrink:0;gap:4px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-action-left{align-items:center;display:flex;gap:4px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech{color:var(--el-text-color-regular,#606266);padding:6px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech .el-icon{font-size:18px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech:not(.is-disabled):active,.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech:not(.is-disabled):hover{background-color:transparent;color:var(--el-text-color-primary,#303133)}.fv-sender.variant-updown .fv-sender-row{align-items:stretch;flex-direction:column;gap:6px}.fv-sender.variant-updown .fv-sender-row .fv-sender-input{width:100%}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions{align-self:flex-end;justify-content:flex-end}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions:has(.fv-sender-action-left){align-self:stretch}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions:has(.fv-sender-action-left) .fv-sender-action-left{margin-right:auto}.fv-sender.is-focused .fv-sender-body{border-color:var(--el-color-primary,#409eff)}.fv-sender.is-disabled .fv-sender-body{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-sender.has-shadow .fv-sender-body{box-shadow:0 8px 20px 0 var(--el-box-shadow-color,rgba(0,0,0,.08));transition:border-color .2s,box-shadow .2s}.fv-sender.has-shadow.is-focused .fv-sender-body{box-shadow:0 8px 24px 0 var(--el-box-shadow-color,rgba(0,0,0,.12))}.fv-sender .fv-sender-stop{--fv-sender-stop-icon-size:16px;--fv-sender-stop-ring-width:2px;--fv-sender-stop-ring-duration:1.1s;position:relative}.fv-sender .fv-sender-stop .el-icon{align-items:center;display:inline-flex;font-size:var(--fv-sender-stop-icon-size);justify-content:center}.fv-sender .fv-sender-stop .fv-stop-icon{display:block}.fv-sender .fv-sender-stop .fv-sender-stop-ring{height:100%;inset:0;overflow:visible;pointer-events:none;position:absolute;width:100%}.fv-sender .fv-sender-stop .fv-sender-stop-ring .fv-sender-stop-ring-rect{x:calc(var(--fv-sender-stop-ring-width)/2);y:calc(var(--fv-sender-stop-ring-width)/2);fill:none;stroke:rgb(255,255,255,var(--ring-alpha,.9));stroke-width:var(--fv-sender-stop-ring-width);stroke-dasharray:0 calc(100 - var(--ring-len, 10)) var(--ring-len,10) 0;animation:fv-sender-stop-spin var(--fv-sender-stop-ring-duration) linear infinite;height:calc(100% - var(--fv-sender-stop-ring-width));width:calc(100% - var(--fv-sender-stop-ring-width))}@media (prefers-reduced-motion:reduce){.fv-sender .fv-sender-stop .fv-sender-stop-ring-rect{animation:none}}.fv-sender .fv-sender-stop.is-guarded .fv-sender-stop-ring-rect{animation-play-state:paused}.fv-sender .fv-sender-footer{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);padding:6px 12px}@keyframes fv-sender-slide-down{0%{max-height:0;opacity:0}to{max-height:300px;opacity:1}}@keyframes fv-sender-stop-spin{to{stroke-dashoffset:-100}}.fv-mention-sender{position:relative}.fv-mention-sender .fv-mention-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-mention-popover .fv-mention-panel{max-height:260px;overflow-y:auto;padding:4px}.fv-mention-popover .fv-mention-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:4px 8px}.fv-mention-popover .fv-mention-loading{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);padding:8px;text-align:center}.fv-mention-popover .fv-mention-item{align-items:center;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font-size:var(--el-font-size-base,14px);gap:8px;padding:6px 8px}.fv-mention-popover .fv-mention-item.is-active,.fv-mention-popover .fv-mention-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-mention-popover .fv-mention-item .fv-mention-avatar{align-items:center;background-color:var(--el-fill-color,#e9e9eb);border-radius:50%;color:var(--el-text-color-regular,#606266);display:inline-flex;flex-shrink:0;font-size:var(--el-font-size-small,12px);height:24px;justify-content:center;overflow:hidden;width:24px}.fv-mention-popover .fv-mention-item .fv-mention-avatar img{height:100%;object-fit:cover;width:100%}.fv-mention-popover .fv-mention-item .fv-mention-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-editor-sender{box-sizing:border-box;display:flex;flex-direction:column;width:100%}.fv-editor-sender .fv-editor-header{animation:fv-editor-slide-down .3s ease;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);max-height:300px;overflow:hidden;padding:8px 12px}.fv-editor-sender .fv-editor-body{align-items:flex-end;background-color:var(--el-fill-color-blank,#fff);border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);display:flex;gap:8px;padding:8px 12px;transition:border-color .2s}.fv-editor-sender .fv-editor-body .fv-editor-prefix{align-items:center;align-self:center;display:flex;flex-shrink:0}.fv-editor-sender .fv-editor-body .fv-editor-input{display:flex;flex:1;min-width:0;position:relative}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-content{background:transparent;box-sizing:border-box;color:var(--el-text-color-primary,#303133);flex:1;font:inherit;font-family:inherit;font-size:var(--el-font-size-base,14px);line-height:22px;max-height:220px;min-width:0;outline:none;overflow-y:auto;padding:4px 0;white-space:pre-wrap;word-break:break-word}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-content:empty:before{color:var(--el-text-color-placeholder,#a8abb2);content:attr(data-placeholder);pointer-events:none}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-editor-sender .fv-editor-body .fv-editor-actions{align-items:center;align-self:flex-end;display:flex;flex-shrink:0;gap:4px}.fv-editor-sender .fv-editor-tag{align-items:center;background-color:var(--el-color-primary-light-9,#ecf5ff);border-radius:var(--el-border-radius-base,4px);box-sizing:border-box;color:var(--el-color-primary,#409eff);display:inline-flex;font-size:var(--el-font-size-base,14px);line-height:20px;margin:0 1px;max-width:100%;padding:0 6px;user-select:all;white-space:nowrap}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag{padding:0 2px}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag .fv-editor-tag-input{background:transparent;border:none;box-sizing:border-box;color:inherit;font:inherit;line-height:20px;outline:none;padding:0 4px;width:120px}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag .fv-editor-tag-input::placeholder{color:var(--el-text-color-placeholder,#a8abb2)}.fv-editor-sender .fv-editor-tag.fv-editor-tag-htmlTag{display:inline;user-select:text;white-space:normal}.fv-editor-sender.variant-updown .fv-editor-body{align-items:stretch;flex-direction:column;gap:6px}.fv-editor-sender.variant-updown .fv-editor-body .fv-editor-input{width:100%}.fv-editor-sender.variant-updown .fv-editor-body .fv-editor-actions{align-self:flex-end;justify-content:flex-end}.fv-editor-sender.device-h5 .fv-editor-body{padding:6px 10px}.fv-editor-sender.is-focused .fv-editor-body{border-color:var(--el-color-primary,#409eff)}.fv-editor-sender.is-disabled .fv-editor-body{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-editor-sender .fv-editor-footer{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);padding:6px 12px}.fv-editor-mention-popover .fv-editor-mention-panel{max-height:260px;overflow-y:auto;padding:4px}.fv-editor-mention-popover .fv-editor-mention-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:4px 8px}.fv-editor-mention-popover .fv-editor-mention-loading{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);padding:8px;text-align:center}.fv-editor-mention-popover .fv-editor-mention-item{align-items:center;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font-size:var(--el-font-size-base,14px);gap:8px;padding:6px 8px}.fv-editor-mention-popover .fv-editor-mention-item.is-active,.fv-editor-mention-popover .fv-editor-mention-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-avatar{align-items:center;background-color:var(--el-fill-color,#e9e9eb);border-radius:50%;color:var(--el-text-color-regular,#606266);display:inline-flex;flex-shrink:0;font-size:var(--el-font-size-small,12px);height:24px;justify-content:center;overflow:hidden;width:24px}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-avatar img{height:100%;object-fit:cover;width:100%}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-editor-tip-popover .fv-editor-tip-panel{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:6px 8px}.fv-editor-select-dialog .fv-editor-select-group+.fv-editor-select-group{margin-top:12px}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-title{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);font-weight:600;margin-bottom:8px}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item{align-items:center;border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:var(--el-border-radius-base,4px);cursor:pointer;display:flex;flex-direction:column;gap:4px;padding:8px;transition:border-color .2s}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item:hover{border-color:var(--el-color-primary,#409eff)}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item .fv-editor-select-preview{border-radius:var(--el-border-radius-base,4px);height:56px;object-fit:cover;width:100%}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item .fv-editor-select-name{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-small,12px);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes fv-editor-slide-down{0%{max-height:0;opacity:0}to{max-height:300px;opacity:1}}.fv-thinking{background-color:var(--fv-thinking-bg,transparent);border-radius:var(--el-border-radius-base,4px);box-sizing:border-box;color:var(--fv-thinking-color,var(--el-text-color-regular,#606266));display:flex;flex-direction:column;width:100%}.fv-thinking .fv-thinking-toggle{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;font:inherit;font-size:15px;gap:6px;line-height:22px;padding:4px 0;text-align:left;transition:color .2s;user-select:none}.fv-thinking .fv-thinking-toggle:hover{color:var(--fv-thinking-color,var(--el-color-primary,#409eff))}.fv-thinking .fv-thinking-toggle:focus{outline:none}.fv-thinking.is-disabled .fv-thinking-toggle{cursor:not-allowed;opacity:.6}.fv-thinking .fv-thinking-status-icon{align-items:center;display:inline-flex;font-size:16px;height:18px;justify-content:center;width:18px}.fv-thinking .fv-thinking-status-icon .fv-thinking-dot{background-color:var(--el-color-primary,#409eff);border-radius:50%;height:8px;width:8px}.fv-thinking .fv-thinking-status-icon .is-loading{animation:fv-thinking-rotate 1s linear infinite;color:var(--el-color-primary,#409eff)}.fv-thinking .fv-thinking-status-icon .is-success{color:var(--el-color-success,#67c23a)}.fv-thinking .fv-thinking-status-icon .is-error{color:var(--el-color-danger,#f56c6c)}.fv-thinking .fv-thinking-label{flex:0 1 auto;max-width:60%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-thinking .fv-thinking-arrow{align-items:center;display:inline-flex;transition:transform .3s ease}.fv-thinking .fv-thinking-arrow.is-open{transform:rotate(180deg)}.fv-thinking .fv-thinking-content{box-sizing:border-box;color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);line-height:22px;padding:8px 0;white-space:pre-wrap;word-break:break-word}@keyframes fv-thinking-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fv-chain{box-sizing:border-box;display:flex;font-size:var(--el-font-size-base,14px)}.fv-chain.is-vertical{flex-direction:column}.fv-chain.is-vertical .fv-chain-item{align-items:flex-start;display:flex;gap:10px;position:relative}.fv-chain.is-vertical .fv-chain-item:not(:last-child):before{background-color:var(--el-border-color,#dcdfe6);border-radius:1px;bottom:0;content:"";left:9px;margin-left:-1px;position:absolute;top:20px;width:2px}.fv-chain.is-horizontal{flex-direction:row;gap:24px}.fv-chain.is-horizontal .fv-chain-item{align-items:flex-start;display:flex;gap:6px}.fv-chain .fv-chain-node{align-items:center;display:inline-flex;flex-shrink:0;font-size:16px;height:18px;justify-content:center;margin-top:2px;position:relative;width:18px}.fv-chain .fv-chain-node .fv-chain-dot{background-color:var(--el-fill-color-blank,#fff);border:2px solid var(--el-border-color,#dcdfe6);border-radius:50%;box-sizing:border-box;height:8px;width:8px}.fv-chain .fv-chain-item.status-success .fv-chain-node{color:var(--el-color-success,#67c23a)}.fv-chain .fv-chain-item.status-success .fv-chain-node .fv-chain-dot{background-color:var(--el-color-success,#67c23a);border-color:var(--el-color-success,#67c23a)}.fv-chain .fv-chain-item.status-error .fv-chain-node{color:var(--el-color-danger,#f56c6c)}.fv-chain .fv-chain-item.status-error .fv-chain-node .fv-chain-dot{background-color:var(--el-color-danger,#f56c6c);border-color:var(--el-color-danger,#f56c6c)}.fv-chain .fv-chain-item.status-loading .fv-chain-node{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-item.status-loading .fv-chain-node .is-loading{animation:fv-chain-rotate 1s linear infinite}.fv-chain .fv-chain-item.status-loading .fv-chain-node .is-searching{animation:fv-chain-searching .9s ease-in-out infinite}.fv-chain .fv-chain-item.status-loading .fv-chain-node .fv-chain-dot{border-color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-item.status-pending .fv-chain-title{color:var(--el-text-color-placeholder,#a8abb2)}.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-node .el-icon{animation:fv-chain-pulse 1.1s ease-in-out infinite}.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-head-preview,.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-head-title,.fv-chain .fv-chain-item.status-loading .fv-chain-title{-webkit-text-fill-color:transparent;animation:fv-chain-shine 2.2s linear infinite;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(100deg,var(--el-text-color-secondary,#909399) 0,var(--el-text-color-secondary,#909399) 40%,var(--el-color-primary,#409eff) 50%,var(--el-text-color-secondary,#909399) 60%,var(--el-text-color-secondary,#909399) 100%);background-size:200% 100%;color:transparent}.fv-chain .fv-chain-main{flex:1;min-width:0;padding-bottom:4px}.fv-chain .fv-chain-main .fv-chain-title{color:var(--el-text-color-primary,#303133);line-height:22px;white-space:pre-wrap;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-title.is-clamped{max-height:calc(var(--fv-chain-title-max-lines, 3)*22px);overflow:hidden}.fv-chain .fv-chain-main .fv-chain-expand{background:none;border:none;color:var(--el-text-color-primary,#303133);cursor:pointer;display:inline-block;font-size:var(--el-font-size-small,12px);line-height:22px;margin-left:6px;position:relative;top:1px;user-select:none;vertical-align:middle}.fv-chain .fv-chain-main .fv-chain-expand .el-icon{display:block;font-size:16px;height:22px}.fv-chain .fv-chain-main .fv-chain-expand:hover{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-main .fv-chain-description{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);line-height:22px;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-head{align-items:center;background:none;border:none;color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font:inherit;gap:8px;line-height:22px;padding:0;text-align:left;user-select:none;width:100%}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-title{flex:0 0 auto}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-preview{color:var(--el-text-color-placeholder,#a8abb2);flex:0 1 auto;font-size:var(--el-font-size-small,12px);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-arrow{color:var(--el-text-color-secondary,#909399);flex:0 0 auto;font-size:14px}.fv-chain .fv-chain-main .fv-chain-head:hover .fv-chain-head-title{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-main .fv-chain-head:focus{outline:none}.fv-chain .fv-chain-main .fv-chain-body{margin-top:2px;padding-left:2px;position:relative}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom,.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top{height:35px;left:0;pointer-events:none;position:absolute;right:0;z-index:1}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom:before,.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top{top:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top:before{background:linear-gradient(to bottom,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 0,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 65%,transparent) 8.75px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 35%,transparent) 17.5px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 12%,transparent) 26.25px,transparent 35px)}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom{bottom:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom:before{background:linear-gradient(to top,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 0,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 65%,transparent) 8.75px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 35%,transparent) 17.5px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 12%,transparent) 26.25px,transparent 35px)}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-body-text{display:block;white-space:pre-wrap;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-body-text,.fv-chain .fv-chain-main .fv-chain-body .fv-typewriter{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:22px}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-description{margin-top:4px}@keyframes fv-chain-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fv-chain-searching{0%,to{transform:rotate(-30deg) scale(1)}25%{transform:rotate(0deg) scale(1.15)}50%{transform:rotate(30deg) scale(1)}75%{transform:rotate(0deg) scale(.92)}}@keyframes fv-chain-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}@keyframes fv-chain-shine{0%{background-position:200% 0}to{background-position:-200% 0}}.fv-welcome{box-sizing:border-box;flex-direction:column;padding:var(--el-main-padding,20px);text-align:center;width:100%}.fv-welcome,.fv-welcome-icon{align-items:center;display:flex;justify-content:center}.fv-welcome-icon .fv-welcome-avatar{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:calc(var(--el-border-radius-base, 4px) + 8px);color:var(--el-color-primary,#409eff);font-size:36px;height:72px;width:72px}.fv-welcome-icon .fv-welcome-gif{display:block;height:var(--fv-welcome-icon-size,96px);object-fit:contain;width:var(--fv-welcome-icon-size,96px)}.fv-welcome-main{align-items:center;min-width:0}.fv-welcome-main,.fv-welcome-text{display:flex;flex-direction:column}.fv-welcome-text{padding-left:4px}.fv-welcome-suggestions{width:100%}.fv-welcome-name{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-extra-large,20px);font-weight:600;line-height:1.4;margin:0}.fv-welcome-name .fv-welcome-name-accent{color:var(--el-color-primary,#409eff)}.fv-welcome-description{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);margin:8px 0 0;max-width:480px;white-space:pre-wrap;word-break:break-word}.fv-welcome.is-horizontal{align-items:flex-end;flex-direction:row;gap:0;justify-content:space-between;padding:0;position:relative;text-align:left}.fv-welcome.is-horizontal .fv-welcome-main{align-items:flex-start;margin-bottom:12px;max-width:100%;order:0}.fv-welcome.is-horizontal .fv-welcome-suggestions{margin-top:12px}.fv-welcome.is-horizontal .fv-welcome-name{font-size:var(--fv-welcome-name-size,25px);letter-spacing:.2px;line-height:34px;margin-bottom:6px}.fv-welcome.is-horizontal .fv-welcome-description{font-size:var(--el-font-size-small,12px);line-height:21px;margin-top:0;max-width:var(--fv-welcome-desc-max-width,690px)}.fv-welcome.is-horizontal .fv-welcome-icon{margin-bottom:-44px;order:1;pointer-events:none;transform:translateX(40px);z-index:1}.fv-welcome.is-horizontal .fv-welcome-gif.is-hero{height:200px;width:200px}.fv-prompts{box-sizing:border-box;width:100%}.fv-prompts .fv-prompts-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);margin-bottom:12px}.fv-prompts .fv-prompts-list{display:flex;flex-wrap:wrap;gap:12px}.fv-prompts .fv-prompts-list.is-nowrap{flex-wrap:nowrap;overflow-x:auto}.fv-prompts .fv-prompts-list.is-nowrap .fv-prompt-item{flex:0 0 auto}.fv-prompts .fv-prompt-item{background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;cursor:pointer;flex:1 1 200px;max-width:100%;padding:12px 14px;transition:background-color var(--el-transition-duration,.3s),border-color var(--el-transition-duration,.3s)}.fv-prompts .fv-prompt-item:hover:not(.is-disabled){background-color:var(--el-fill-color-light,#f5f7fa);border-color:var(--el-border-color,#dcdfe6)}.fv-prompts .fv-prompt-item:focus-visible:not(.is-disabled){border-color:var(--el-color-primary,#409eff);outline:none}.fv-prompts .fv-prompt-item.is-disabled{background-color:var(--el-fill-color-lighter,#fafafa);cursor:not-allowed;opacity:.6}.fv-prompts .fv-prompt-item.is-disabled,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-description,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-icon,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-label{color:var(--el-text-color-placeholder,#a8abb2)}.fv-prompts .fv-prompt-item .fv-prompt-item-main{align-items:flex-start;display:flex;gap:10px}.fv-prompts .fv-prompt-item .fv-prompt-item-icon{color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:18px;margin-top:2px}.fv-prompts .fv-prompt-item .fv-prompt-item-text{flex:1;min-width:0}.fv-prompts .fv-prompt-item .fv-prompt-item-label{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);font-weight:500;line-height:var(--el-font-line-height-primary,24px);word-break:break-word}.fv-prompts .fv-prompt-item .fv-prompt-item-description{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);line-height:var(--el-font-line-height-primary,24px);margin-top:2px;word-break:break-word}.fv-files-card{align-items:center;background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;display:flex;gap:8px;max-width:100%;min-width:0;padding:8px 24px 8px 10px;position:relative;transition:border-color var(--el-transition-duration,.3s)}.fv-files-card .fv-files-card-icon{color:var(--el-text-color-regular,#606266);flex-shrink:0;font-size:36px}.fv-files-card .fv-files-card-info{flex:1;min-width:0}.fv-files-card .fv-files-card-name{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-small,12px);line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-files-card .fv-files-card-size{color:var(--el-text-color-secondary,#909399)}.fv-files-card .fv-files-card-error,.fv-files-card .fv-files-card-size{font-size:var(--el-font-size-extra-small,12px);line-height:16px;white-space:nowrap}.fv-files-card .fv-files-card-error{color:var(--el-color-danger,#f56c6c);max-width:100%;overflow:hidden;text-overflow:ellipsis}.fv-files-card .fv-files-card-thumb{align-items:center;background-color:var(--el-fill-color-light,#f5f7fa);border-radius:var(--el-border-radius-base,4px);display:flex;flex-shrink:0;height:48px;justify-content:center;overflow:hidden;width:48px}.fv-files-card .fv-files-card-thumb .fv-files-card-img{display:block;height:100%;object-fit:cover;width:100%}.fv-files-card .fv-files-card-thumb .fv-files-card-thumb-placeholder{color:var(--el-text-color-placeholder,#a8abb2);font-size:20px}.fv-files-card .fv-files-card-loading{animation:fv-files-card-rotating 1.5s linear infinite;color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:20px}.fv-files-card .fv-files-card-download,.fv-files-card .fv-files-card-remove{align-items:center;background-color:transparent;border:none;border-radius:50%;color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;justify-content:center;opacity:0;padding:0;position:absolute;right:2px;top:2px;transition:opacity var(--el-transition-duration,.3s),color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s)}.fv-files-card .fv-files-card-remove{font-size:12px;height:18px;width:18px}.fv-files-card .fv-files-card-download{font-size:16px;height:28px;margin-top:-14px;top:50%;width:28px}.fv-files-card.has-download{padding-right:34px}.fv-files-card .fv-files-card-remove:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-danger,#f56c6c)}.fv-files-card .fv-files-card-download:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-files-card:hover .fv-files-card-download,.fv-files-card:hover .fv-files-card-remove{opacity:1}.fv-files-card.is-error{border-color:var(--el-color-danger,#f56c6c)}.fv-files-card.is-error .fv-files-card-name{color:var(--el-color-danger,#f56c6c)}@keyframes fv-files-card-rotating{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fv-attachments{align-items:flex-start;box-sizing:border-box;display:flex;gap:8px;width:100%}.fv-attachments .fv-attachments-input{display:none}.fv-attachments .fv-attachments-trigger{align-items:center;background-color:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;flex-shrink:0;font-size:16px;height:32px;justify-content:center;padding:0;transition:color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:32px}.fv-attachments .fv-attachments-trigger:hover:not(:disabled){background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-attachments .fv-attachments-trigger.is-full,.fv-attachments .fv-attachments-trigger:disabled{color:var(--el-text-color-placeholder,#a8abb2);cursor:not-allowed}.fv-attachments .fv-attachments-list{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.fv-attachments .fv-attachments-item{align-items:center;display:flex;min-width:0;position:relative}.fv-attachments .fv-attachments-item .fv-files-card{max-width:240px}.fv-attachments .fv-attachments-item .fv-attachments-retry{align-items:center;background-color:transparent;border:none;border-radius:50%;color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;font-size:14px;height:20px;justify-content:center;margin-left:4px;padding:0;transition:color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:20px}.fv-attachments .fv-attachments-item .fv-attachments-retry:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-attachments .fv-attachments-tip{color:var(--el-text-color-placeholder,#a8abb2);flex:1;font-size:var(--el-font-size-extra-small,12px);line-height:32px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-conversations{box-sizing:border-box;overflow-y:auto;width:100%}.fv-conversations .fv-conversations-group .fv-conversations-group-title{background-color:var(--el-bg-color,#fff);color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-extra-small,12px);line-height:20px;padding:8px 12px 4px;position:sticky;top:0;z-index:1}.fv-conversations .fv-conversations-item{align-items:center;border-radius:var(--el-border-radius-base,4px);cursor:pointer;display:flex;gap:4px;padding:0 8px 0 12px;transition:background-color .2s;user-select:none}.fv-conversations .fv-conversations-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-conversations .fv-conversations-item:hover .fv-conversations-menu-btn{opacity:1;pointer-events:auto}.fv-conversations .fv-conversations-item.is-active{background-color:var(--el-color-primary-light-9,#ecf5ff);color:var(--el-color-primary,#409eff)}.fv-conversations .fv-conversations-item.is-active .fv-conversations-item-label{color:var(--el-color-primary,#409eff);font-weight:600}.fv-conversations .fv-conversations-item.is-disabled{color:var(--el-text-color-disabled,#a8abb2);cursor:not-allowed}.fv-conversations .fv-conversations-item.is-disabled .fv-conversations-item-label{color:var(--el-text-color-disabled,#a8abb2)}.fv-conversations .fv-conversations-item.is-disabled:hover{background-color:transparent}.fv-conversations .fv-conversations-item .fv-conversations-item-content{flex:1;min-width:0;padding:9px 0}.fv-conversations .fv-conversations-item .fv-conversations-item-content .fv-conversations-item-label{color:var(--el-text-color-regular,#606266);display:block;font-size:var(--el-font-size-base,14px);line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-conversations .fv-conversations-item .fv-conversations-menu-btn{align-items:center;background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:inline-flex;flex-shrink:0;height:24px;justify-content:center;opacity:0;padding:0;pointer-events:none;transition:opacity .2s;width:24px}.fv-conversations .fv-conversations-item .fv-conversations-menu-btn:hover{background-color:var(--el-fill-color,#f0f2f5);color:var(--el-text-color-primary,#303133)}.fv-conversations.show-menu-always .fv-conversations-item .fv-conversations-menu-btn{opacity:1;pointer-events:auto}.fv-msg{align-items:flex-start;box-sizing:border-box;display:flex;gap:12px;padding:8px 0;width:100%}.fv-msg .fv-msg-avatar{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:var(--fv-msg-avatar-radius,calc(var(--el-border-radius-base, 4px) + 4px));color:var(--el-text-color-secondary,#909399);flex-shrink:0;font-size:calc(var(--fv-msg-avatar-size, 50px)/2);height:var(--fv-msg-avatar-size,50px);overflow:hidden;width:var(--fv-msg-avatar-size,50px)}.fv-msg .fv-msg-avatar,.fv-msg .fv-msg-avatar-bot{align-items:center;display:flex;justify-content:center}.fv-msg .fv-msg-avatar-bot{background-color:var(--el-color-primary,#409eff);border-radius:inherit;color:#fff;height:100%;width:100%}.fv-msg .fv-msg-avatar-img{border-radius:inherit;display:block;height:100%;object-fit:cover;transform:scale(var(--fv-msg-avatar-scale,1));width:100%}.fv-msg.is-user .fv-msg-avatar{background-color:var(--el-color-primary-light-8,#d9ecff);color:var(--el-color-primary,#409eff);order:2}.fv-msg .fv-msg-main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0}.fv-msg .fv-msg-main .fv-msg-header{align-items:center;color:var(--el-text-color-secondary,#909399);display:flex;font-size:var(--el-font-size-small,12px);gap:8px;margin-bottom:2px}.fv-msg .fv-msg-main .fv-msg-header .fv-msg-model{background-color:var(--el-fill-color,#f0f2f5);border-radius:var(--el-border-radius-base,4px);line-height:18px;padding:0 6px}.fv-msg .fv-msg-main .fv-msg-files{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file{align-items:center;background-color:transparent;border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-regular,#606266);cursor:pointer;display:inline-flex;font-family:inherit;font-size:var(--el-font-size-small,12px);padding:4px 8px;transition:border-color var(--el-transition-duration,.3s)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file:hover{border-color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file:focus-visible{border-color:var(--el-color-primary,#409eff);outline:none}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file .fv-msg-file-img{border-radius:var(--el-border-radius-base,4px);max-height:64px;max-width:64px;object-fit:cover}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file .fv-msg-file-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card{max-width:240px}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card .fv-files-card-remove{display:none}.fv-msg .fv-msg-main .fv-msg-tools{box-sizing:border-box;margin-bottom:8px;padding-bottom:8px;width:100%}.fv-msg .fv-msg-main .fv-msg-tools.has-separator{border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5)}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain{font-size:var(--el-font-size-base,14px)}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item:not(:last-child){padding-bottom:6px}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item:not(:last-child):before{background-color:var(--el-border-color,#dcdfe6);border-radius:1px;bottom:0;content:"";left:9px;margin-left:-1px;position:absolute;top:20px;width:2px}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-description,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-head-title,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item.is-text .fv-chain-node,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item.status-success .fv-chain-node,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-title{color:var(--el-text-color-secondary,#909399)}.fv-msg .fv-msg-main .fv-msg-content{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);max-width:100%;min-width:0;word-break:break-word}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-error{color:var(--el-color-danger,#f56c6c)}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending{align-items:center;display:inline-flex;gap:8px;padding:4px 0}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending .fv-msg-spinner{animation:fv-msg-rotate .8s linear infinite;border:2px solid var(--el-color-primary-light-8,#dceaff);border-radius:50%;border-top-color:var(--el-color-primary,#409eff);box-sizing:border-box;flex-shrink:0;height:16px;width:16px}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending .fv-msg-pending-text{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px)}.fv-msg .fv-msg-main .fv-msg-content-user{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);padding:8px 12px;white-space:pre-wrap}.fv-msg .fv-msg-main .fv-msg-followups{margin-top:6px}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup{background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 10px);box-sizing:border-box;color:var(--el-text-color-regular,#606266);cursor:pointer;font-size:var(--el-font-size-small,12px);line-height:20px;max-width:100%;overflow:hidden;padding:4px 12px;text-align:left;text-overflow:ellipsis;transition:border-color .15s,color .15s,background-color .15s;white-space:nowrap}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:hover:not(.is-disabled):not(:disabled){border-color:var(--el-color-primary-light-5,#a0cfff);color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:focus-visible{outline:2px solid var(--el-color-primary-light-5,#a0cfff);outline-offset:1px}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup.is-disabled,.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:disabled{cursor:not-allowed;opacity:.55}.fv-msg .fv-msg-main .fv-msg-followups.is-list{align-items:flex-start;border-top:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-direction:column;gap:4px;margin-top:8px;padding-top:8px;width:100%}.fv-msg .fv-msg-main .fv-msg-followups.is-list .fv-msg-followup{border:none;border-radius:0;color:var(--el-text-color-secondary,#909399);line-height:22px;padding:2px 4px;white-space:normal}.fv-msg .fv-msg-main .fv-msg-followups.is-list .fv-msg-followups-title{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-small,12px);line-height:20px;user-select:none}.fv-msg .fv-msg-main .fv-msg-followups.is-chips{display:flex;flex-wrap:wrap;gap:8px}.fv-msg.is-user{flex-direction:row;justify-content:flex-end}.fv-msg.is-user .fv-msg-main{align-items:flex-end}.fv-msg .fv-msg-actions{align-items:center;display:flex;gap:2px;margin-top:2px}.fv-msg .fv-msg-actions .el-button+.el-button{margin-left:0}.fv-msg .fv-msg-actions .fv-msg-branch{align-items:center;display:inline-flex;gap:2px;margin-left:6px}.fv-msg .fv-msg-actions .fv-msg-branch .fv-msg-branch-label{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:0 2px}.fv-msg .fv-msg-actions .fv-msg-feedback{align-items:center;display:inline-flex;gap:2px;margin-left:4px}.fv-msg .fv-msg-actions .fv-msg-feedback .fv-msg-feedback-btn.is-active{color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-actions .fv-msg-time{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);line-height:18px;margin-left:8px;user-select:none;white-space:nowrap}.fv-msg.is-user .fv-msg-actions{opacity:0;pointer-events:none;transition:opacity .15s}.fv-msg.is-user .fv-msg-actions .fv-msg-branch{margin-left:0}.fv-msg.is-user:focus-within .fv-msg-actions,.fv-msg.is-user:hover .fv-msg-actions{opacity:1;pointer-events:auto}@keyframes fv-msg-rotate{to{transform:rotate(1turn)}}.fv-msg-feedback-dialog .el-dialog__title{font-size:var(--el-font-size-base,14px)}.fv-msg-feedback-dialog .el-dialog__body{padding-bottom:8px;padding-top:8px}.fv-msg-feedback-dialog .el-dialog__footer{padding-top:0}.fv-messages{box-sizing:border-box;display:flex;flex:1;flex-direction:column;min-height:0;width:100%}.fv-messages .fv-messages-scroll{box-sizing:border-box;flex:1;min-height:0;overflow-y:auto;padding:0 16px}.fv-messages .fv-messages-inner{margin:0 auto;max-width:var(--fv-messages-max-width,none);position:relative}.fv-messages .fv-messages-empty{align-items:center;box-sizing:border-box;display:flex;flex:1;flex-direction:column;justify-content:flex-end;padding:32px 16px 0}.fv-messages .fv-messages-empty .fv-welcome.is-horizontal{max-width:var(--fv-welcome-max-width,var(--fv-empty-max-width,780px))}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-title{margin-bottom:8px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-list{flex-wrap:wrap;gap:8px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-list.is-nowrap{flex-wrap:nowrap;overflow-x:auto}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item{background-color:var(--el-bg-color,#fff);border-radius:16px;flex:0 0 auto;max-width:100%;padding:6px 12px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item:hover:not(.is-disabled){background-color:var(--el-fill-color-light,#f5f7fa)}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-main{align-items:center;gap:6px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-icon{font-size:14px;margin-top:0}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-label{color:var(--el-text-color-regular,#557096);font-size:var(--el-font-size-small,12px);font-weight:400;line-height:20px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-description{display:none}.fv-messages .fv-messages-back{bottom:16px;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));float:right;margin-right:16px;margin-top:-40px;pointer-events:auto;position:sticky;z-index:1}.fv-messages .fv-messages-back .fv-messages-back-icon{font-size:16px;line-height:1}.fv-messages-back-fade-enter-active,.fv-messages-back-fade-leave-active{transition:opacity .2s ease}.fv-messages-back-fade-enter-from,.fv-messages-back-fade-leave-to{opacity:0}.fv-ai-chat{background-color:var(--el-bg-color,#fff);box-sizing:border-box;color:var(--el-text-color-primary,#303133);display:flex;flex-direction:column;height:100%;min-height:0;width:100%}.fv-ai-chat .fv-thinking-content{padding:8px 0 0}.fv-ai-chat .fv-ai-chat-header{align-items:center;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-shrink:0;gap:12px;justify-content:space-between;padding:8px 16px}.fv-ai-chat .fv-ai-chat-header .fv-ai-chat-title{font-size:var(--el-font-size-base,14px);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-ai-chat .fv-ai-chat-header .fv-ai-chat-models{flex-shrink:0;width:220px}.fv-ai-chat .fv-ai-chat-body{display:flex;flex:1;min-height:0;overflow:hidden}.fv-ai-chat .fv-ai-chat-footer{flex-shrink:0;padding:0 16px 12px}.fv-ai-chat.is-empty{--fv-empty-max-width:780px}.fv-ai-chat.is-empty .fv-ai-chat-footer{display:flex;justify-content:center}.fv-ai-chat.is-empty .fv-ai-chat-footer>.fv-sender{flex:0 1 var(--fv-empty-max-width);max-width:var(--fv-empty-max-width)}.fv-ai-chat.is-empty .fv-welcome.is-horizontal .fv-welcome-icon{transform:translateX(40px)}.fv-ai-chat.is-center-welcome .fv-ai-chat-body{flex:0 1 auto;margin-top:auto;min-height:0}.fv-ai-chat.is-center-welcome .fv-ai-chat-footer{margin-bottom:auto}html.dark .fv-ai-chat{background-color:var(--el-bg-color,#141414)}.fv-artifacts{background-color:var(--el-bg-color,#fff);border-left:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0;max-width:var(--fv-artifacts-max-width,60%);min-width:var(--fv-artifacts-min-width,360px);overflow:hidden;width:var(--fv-artifacts-width,420px)}.fv-artifacts .fv-artifacts-tabs{align-items:center;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-shrink:0;gap:4px;overflow-x:auto;padding:6px 8px}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab{background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-regular,#606266);cursor:pointer;flex-shrink:0;font-size:var(--el-font-size-small,12px);line-height:1.4;padding:4px 10px;white-space:nowrap}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-text-color-primary,#303133)}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab.is-active{background-color:var(--el-color-primary-light-9,#ecf5ff);color:var(--el-color-primary,#409eff)}.fv-artifacts .fv-artifacts-tabs .fv-artifacts-spacer{flex:1}.fv-artifacts .fv-artifacts-frame{background-color:var(--el-bg-color-page,#f2f3f5);border:none;flex:1;min-height:0;width:100%}html.dark .fv-artifacts{background-color:var(--el-bg-color,#141414)}
|
|
1
|
+
.fv-markdown{color:var(--el-text-color-primary,#303133);line-height:1.7;word-break:break-word}.fv-markdown h1,.fv-markdown h2,.fv-markdown h3,.fv-markdown h4,.fv-markdown h5,.fv-markdown h6{color:var(--el-text-color-primary,#303133);font-weight:600;margin:1em 0 .5em}.fv-markdown h1{font-size:1.5em}.fv-markdown h2{font-size:1.3em}.fv-markdown h3{font-size:1.15em}.fv-markdown p{margin:.5em 0}.fv-markdown ol,.fv-markdown ul{margin:.5em 0;padding-left:2em}.fv-markdown ol ol,.fv-markdown ol ul,.fv-markdown ul ol,.fv-markdown ul ul{margin:.2em 0}.fv-markdown ul{list-style:disc}.fv-markdown ol{list-style:decimal}.fv-markdown ul ul{list-style:circle}.fv-markdown ul ul ul{list-style:square}.fv-markdown li{margin:.2em 0}.fv-markdown a{color:var(--el-color-primary,#409eff);text-decoration:none}.fv-markdown a:hover{text-decoration:underline}.fv-markdown blockquote{border-left:4px solid var(--el-border-color,#dcdfe6);color:var(--el-text-color-regular,#606266);margin:.5em 0;padding:.4em 1em}.fv-markdown blockquote,.fv-markdown code{background:var(--el-fill-color-light,#f5f7fa)}.fv-markdown code{border-radius:3px;color:var(--el-color-danger,#f56c6c);font-family:JetBrains Mono,Consolas,Courier New,monospace;font-size:.9em;padding:.15em .4em}.fv-markdown pre{background:#282c34;border-radius:6px;margin:.5em 0;overflow-x:auto;padding:1em}.fv-markdown pre code{background:transparent;color:#dcdfe6;font-size:.9em;line-height:1.6;padding:0}.fv-markdown pre.fv-md-code-pre{padding-top:2em;position:relative}.fv-markdown pre.fv-md-code-pre .fv-md-code-trigger{background:hsla(0,0%,100%,.12);border:1px solid hsla(0,0%,100%,.22);border-radius:var(--el-border-radius-base,4px);color:#dcdfe6;cursor:pointer;font-size:var(--el-font-size-small,12px);line-height:1.5;padding:2px 10px;position:absolute;right:8px;top:6px}.fv-markdown pre.fv-md-code-pre .fv-md-code-trigger:hover{background:hsla(0,0%,100%,.22);color:#fff}.fv-markdown table{border-collapse:collapse;margin:.5em 0;width:100%}.fv-markdown table td,.fv-markdown table th{border:1px solid var(--el-border-color-lighter,#ebeef5);padding:.5em .8em;text-align:left}.fv-markdown table th{background:var(--el-fill-color-lighter,#fafafa);font-weight:600}.fv-markdown table tr:nth-child(2n) td{background:var(--el-fill-color-blank,#fafcff)}.fv-markdown .fv-md-table-wrap{margin:.5em 0}.fv-markdown .fv-md-table-wrap table{margin:0}.fv-markdown .fv-md-table-bar{background:var(--el-fill-color-light,#f5f7fa);border:1px solid var(--el-border-color-lighter,#ebeef5);border-bottom:none;border-radius:3px 3px 0 0;display:flex;gap:4px;justify-content:flex-end;padding:2px 4px}.fv-markdown .fv-md-table-btn{align-items:center;background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:inline-flex;height:24px;justify-content:center;padding:0;width:24px}.fv-markdown .fv-md-table-btn:hover{background:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-markdown .fv-md-table-btn svg{display:block;height:14px;width:14px}.fv-markdown .fv-md-table-btn .fv-md-table-ic.is-check,.fv-markdown .fv-md-table-btn.is-copied .fv-md-table-ic{display:none}.fv-markdown .fv-md-table-btn.is-copied .fv-md-table-ic.is-check{display:block}.fv-markdown .fv-md-table-btn.is-copied{color:var(--el-color-success,#67c23a)}.fv-markdown .katex-display{margin:.5em 0;overflow-x:auto}.fv-md-table-tip{background:#303133;border-radius:var(--el-border-radius-base,4px);box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));color:#fff;display:none;font-size:var(--el-font-size-base,12px);line-height:1.4;padding:5px 11px;pointer-events:none;position:fixed;transform:translate(-50%,calc(-100% - 8px));white-space:nowrap;z-index:calc(var(--el-index-popper, 2000) - 1)}.fv-md-table-tip:after{background:inherit;bottom:-4px;content:"";height:8px;left:50%;position:absolute;transform:translateX(-50%) rotate(45deg);width:8px}.fv-typewriter{display:inline-block;max-width:100%;position:relative}.fv-typewriter .fv-typewriter-text{white-space:pre-wrap;word-break:break-word}.fv-typewriter .fv-typewriter-suffix{animation:fv-typewriter-blink 1s step-start infinite;display:inline-block}.fv-typewriter .fv-typewriter-fog{animation:fv-typewriter-fog-in .3s ease-out both;background:linear-gradient(90deg,transparent,var(--fv-typewriter-fog-color,var(--el-bg-color,#fff)));bottom:0;pointer-events:none;position:absolute;right:0;top:0}@keyframes fv-typewriter-blink{0%,to{opacity:1}50%{opacity:0}}@keyframes fv-typewriter-fog-in{0%{opacity:0}to{opacity:1}}.fv-bubble{align-items:flex-start;display:flex;gap:var(--fv-bubble-avatar-gap,12px)}.fv-bubble.is-end{flex-direction:row-reverse;justify-content:flex-end}.fv-bubble.is-end .fv-bubble-main{align-items:flex-end}.fv-bubble .fv-bubble-avatar{display:flex;flex-shrink:0}.fv-bubble .fv-bubble-avatar .el-avatar{height:var(--fv-bubble-avatar-size,36px);width:var(--fv-bubble-avatar-size,36px)}.fv-bubble .fv-bubble-main{align-items:flex-start;display:flex;flex:1;flex-direction:column;max-width:100%;min-width:0}.fv-bubble .fv-bubble-main .fv-bubble-footer,.fv-bubble .fv-bubble-main .fv-bubble-header{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px)}.fv-bubble .fv-bubble-main .fv-bubble-footer{margin-top:4px}.fv-bubble .fv-bubble-content{border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);max-width:100%;min-width:0;padding:var(--el-main-padding,12px) calc(var(--el-main-padding, 12px) + 4px);position:relative;word-break:break-word}.fv-bubble .fv-bubble-content.no-padding{padding:0}.fv-bubble .fv-bubble-content .fv-bubble-text{white-space:pre-wrap}.fv-bubble.shape-round .fv-bubble-content{border-radius:var(--el-border-radius-round,20px)}.fv-bubble.shape-corner .fv-bubble-content{border-start-start-radius:calc(var(--el-border-radius-base, 4px) - 2px)}.fv-bubble.is-end.shape-corner .fv-bubble-content{border-start-end-radius:calc(var(--el-border-radius-base, 4px) - 2px);border-start-start-radius:calc(var(--el-border-radius-base, 4px) + 4px)}.fv-bubble.variant-borderless .fv-bubble-content,.fv-bubble.variant-filled .fv-bubble-content{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-bubble.variant-borderless .fv-bubble-content,.fv-bubble.variant-outlined .fv-bubble-content{border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6)}.fv-bubble.variant-outlined .fv-bubble-content{background:none}.fv-bubble.variant-shadow .fv-bubble-content{background:none;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12))}.fv-bubble .fv-bubble-content.no-style{background:transparent;border:none;box-shadow:none;padding:0}.fv-bubble .fv-bubble-loading{align-items:center;display:flex;gap:5px;min-height:1em;width:fit-content}.fv-bubble .fv-bubble-loading .fv-bubble-loading-dot{animation:fv-bubble-wave 1s ease-in-out infinite;background-color:var(--el-color-primary,#409eff);border-radius:50%;height:5px;width:5px}@keyframes fv-bubble-wave{0%,to{transform:translateY(-2px)}50%{transform:translateY(2px)}}.fv-bubble-list{display:flex;flex-direction:column;min-height:0;position:relative}.fv-bubble-list .fv-bubble-list-scroll{display:flex;flex-direction:column;gap:16px;min-height:0;overflow-y:auto}.fv-bubble-list .fv-bubble-list-scroll>.fv-bubble{flex-shrink:0}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar{overflow-y:scroll;scrollbar-width:auto}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar::-webkit-scrollbar{-webkit-appearance:none;width:6px}.fv-bubble-list .fv-bubble-list-scroll.always-scrollbar::-webkit-scrollbar-thumb{background-color:var(--el-border-color,#dcdfe6);border-radius:3px}.fv-bubble-list .fv-bubble-list-back{align-items:center;bottom:16px;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));display:inline-flex;justify-content:center;left:50%;position:absolute;transform:translateX(-50%);z-index:1}.fv-bubble-list .fv-bubble-list-back .fv-bubble-list-back-icon{align-items:center;display:inline-flex;justify-content:center;line-height:1}.fv-bubble-list-fade-enter-active,.fv-bubble-list-fade-leave-active{transition:opacity .2s ease,transform .2s ease}.fv-bubble-list-fade-enter-from,.fv-bubble-list-fade-leave-to{opacity:0;transform:translate(-50%,4px)}.fv-sender{box-sizing:border-box;display:flex;flex-direction:column;width:100%}.fv-sender .fv-sender-header{animation:fv-sender-slide-down .3s ease;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);max-height:300px;overflow:hidden;padding:8px 12px}.fv-sender .fv-sender-body{background-color:var(--el-fill-color-blank,#fff);border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);display:flex;flex-direction:column;gap:6px;padding:8px 12px;transition:border-color .2s}.fv-sender .fv-sender-body .fv-sender-body-top:empty{display:none}.fv-sender .fv-sender-body .fv-sender-row{align-items:flex-end;display:flex;gap:8px}.fv-sender .fv-sender-body .fv-sender-prefix{align-items:center;align-self:center;display:flex;flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-recording{align-items:center;background-color:var(--el-color-primary-light-9,#ecf5ff);border-radius:calc(var(--el-border-radius-base, 4px) + 2px);display:flex;flex:1;gap:8px;min-width:0;outline:none;padding:4px 8px}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-cancel{flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-cancel:hover{color:var(--el-color-danger,#f56c6c)}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-wave{align-items:center;direction:rtl;display:flex;flex:1;gap:2px;height:22px;justify-content:flex-end;min-width:0;overflow:hidden}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-wave .fv-sender-recording-bar{background-color:var(--el-color-primary,#409eff);border-radius:1px;flex-shrink:0;min-height:2px;opacity:.75;width:2px}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-duration{color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:var(--el-font-size-small,12px);font-variant-numeric:tabular-nums;min-width:3em;text-align:center}.fv-sender .fv-sender-body .fv-sender-recording .fv-sender-recording-confirm{flex-shrink:0}.fv-sender .fv-sender-body .fv-sender-input{display:flex;flex:1;min-width:0;position:relative}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea{background:transparent;border:none;box-sizing:border-box;color:var(--el-text-color-primary,#303133);flex:1;font:inherit;font-family:inherit;font-size:var(--el-font-size-base,14px);line-height:22px;min-width:0;outline:none;padding:4px 0;resize:none}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea::placeholder{color:var(--el-text-color-placeholder,#a8abb2)}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea:disabled{color:var(--el-text-color-disabled,#a8abb2);cursor:not-allowed}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-textarea[readonly]{cursor:default}.fv-sender .fv-sender-body .fv-sender-input .fv-sender-trigger-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-sender .fv-sender-body .fv-sender-actions{align-items:center;align-self:flex-end;display:flex;flex-shrink:0;gap:4px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-action-left{align-items:center;display:flex;gap:4px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech{color:var(--el-text-color-regular,#606266);padding:6px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech .el-icon{font-size:18px}.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech:not(.is-disabled):active,.fv-sender .fv-sender-body .fv-sender-actions .fv-sender-speech:not(.is-disabled):hover{background-color:transparent;color:var(--el-text-color-primary,#303133)}.fv-sender.variant-updown .fv-sender-row{align-items:stretch;flex-direction:column;gap:6px}.fv-sender.variant-updown .fv-sender-row .fv-sender-input{width:100%}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions{align-self:flex-end;justify-content:flex-end}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions:has(.fv-sender-action-left){align-self:stretch}.fv-sender.variant-updown .fv-sender-row .fv-sender-actions:has(.fv-sender-action-left) .fv-sender-action-left{margin-right:auto}.fv-sender.is-focused .fv-sender-body{border-color:var(--el-color-primary,#409eff)}.fv-sender.is-disabled .fv-sender-body{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-sender.has-shadow .fv-sender-body{box-shadow:0 8px 20px 0 var(--el-box-shadow-color,rgba(0,0,0,.08));transition:border-color .2s,box-shadow .2s}.fv-sender.has-shadow.is-focused .fv-sender-body{box-shadow:0 8px 24px 0 var(--el-box-shadow-color,rgba(0,0,0,.12))}.fv-sender .fv-sender-stop{--fv-sender-stop-icon-size:16px;--fv-sender-stop-ring-width:2px;--fv-sender-stop-ring-duration:1.1s;position:relative}.fv-sender .fv-sender-stop .el-icon{align-items:center;display:inline-flex;font-size:var(--fv-sender-stop-icon-size);justify-content:center}.fv-sender .fv-sender-stop .fv-stop-icon{display:block}.fv-sender .fv-sender-stop .fv-sender-stop-ring{height:100%;inset:0;overflow:visible;pointer-events:none;position:absolute;width:100%}.fv-sender .fv-sender-stop .fv-sender-stop-ring .fv-sender-stop-ring-rect{x:calc(var(--fv-sender-stop-ring-width)/2);y:calc(var(--fv-sender-stop-ring-width)/2);fill:none;stroke:rgb(255,255,255,var(--ring-alpha,.9));stroke-width:var(--fv-sender-stop-ring-width);stroke-dasharray:0 calc(100 - var(--ring-len, 10)) var(--ring-len,10) 0;animation:fv-sender-stop-spin var(--fv-sender-stop-ring-duration) linear infinite;height:calc(100% - var(--fv-sender-stop-ring-width));width:calc(100% - var(--fv-sender-stop-ring-width))}@media (prefers-reduced-motion:reduce){.fv-sender .fv-sender-stop .fv-sender-stop-ring-rect{animation:none}}.fv-sender .fv-sender-stop.is-guarded .fv-sender-stop-ring-rect{animation-play-state:paused}.fv-sender .fv-sender-footer{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);padding:6px 12px}@keyframes fv-sender-slide-down{0%{max-height:0;opacity:0}to{max-height:300px;opacity:1}}@keyframes fv-sender-stop-spin{to{stroke-dashoffset:-100}}.fv-mention-sender{position:relative}.fv-mention-sender .fv-mention-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-mention-popover .fv-mention-panel{max-height:260px;overflow-y:auto;padding:4px}.fv-mention-popover .fv-mention-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:4px 8px}.fv-mention-popover .fv-mention-loading{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);padding:8px;text-align:center}.fv-mention-popover .fv-mention-item{align-items:center;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font-size:var(--el-font-size-base,14px);gap:8px;padding:6px 8px}.fv-mention-popover .fv-mention-item.is-active,.fv-mention-popover .fv-mention-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-mention-popover .fv-mention-item .fv-mention-avatar{align-items:center;background-color:var(--el-fill-color,#e9e9eb);border-radius:50%;color:var(--el-text-color-regular,#606266);display:inline-flex;flex-shrink:0;font-size:var(--el-font-size-small,12px);height:24px;justify-content:center;overflow:hidden;width:24px}.fv-mention-popover .fv-mention-item .fv-mention-avatar img{height:100%;object-fit:cover;width:100%}.fv-mention-popover .fv-mention-item .fv-mention-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-editor-sender{box-sizing:border-box;display:flex;flex-direction:column;width:100%}.fv-editor-sender .fv-editor-header{animation:fv-editor-slide-down .3s ease;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);max-height:300px;overflow:hidden;padding:8px 12px}.fv-editor-sender .fv-editor-body{align-items:flex-end;background-color:var(--el-fill-color-blank,#fff);border:var(--el-border-width,1px) solid var(--el-border-color,#dcdfe6);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);display:flex;gap:8px;padding:8px 12px;transition:border-color .2s}.fv-editor-sender .fv-editor-body .fv-editor-prefix{align-items:center;align-self:center;display:flex;flex-shrink:0}.fv-editor-sender .fv-editor-body .fv-editor-input{display:flex;flex:1;min-width:0;position:relative}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-content{background:transparent;box-sizing:border-box;color:var(--el-text-color-primary,#303133);flex:1;font:inherit;font-family:inherit;font-size:var(--el-font-size-base,14px);line-height:22px;max-height:220px;min-width:0;outline:none;overflow-y:auto;padding:4px 0;white-space:pre-wrap;word-break:break-word}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-content:empty:before{color:var(--el-text-color-placeholder,#a8abb2);content:attr(data-placeholder);pointer-events:none}.fv-editor-sender .fv-editor-body .fv-editor-input .fv-editor-anchor{bottom:0;height:0;pointer-events:none;position:absolute;width:0}.fv-editor-sender .fv-editor-body .fv-editor-actions{align-items:center;align-self:flex-end;display:flex;flex-shrink:0;gap:4px}.fv-editor-sender .fv-editor-tag{align-items:center;background-color:var(--el-color-primary-light-9,#ecf5ff);border-radius:var(--el-border-radius-base,4px);box-sizing:border-box;color:var(--el-color-primary,#409eff);display:inline-flex;font-size:var(--el-font-size-base,14px);line-height:20px;margin:0 1px;max-width:100%;padding:0 6px;user-select:all;white-space:nowrap}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag{padding:0 2px}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag .fv-editor-tag-input{background:transparent;border:none;box-sizing:border-box;color:inherit;font:inherit;line-height:20px;outline:none;padding:0 4px;width:120px}.fv-editor-sender .fv-editor-tag.fv-editor-tag-inputTag .fv-editor-tag-input::placeholder{color:var(--el-text-color-placeholder,#a8abb2)}.fv-editor-sender .fv-editor-tag.fv-editor-tag-htmlTag{display:inline;user-select:text;white-space:normal}.fv-editor-sender.variant-updown .fv-editor-body{align-items:stretch;flex-direction:column;gap:6px}.fv-editor-sender.variant-updown .fv-editor-body .fv-editor-input{width:100%}.fv-editor-sender.variant-updown .fv-editor-body .fv-editor-actions{align-self:flex-end;justify-content:flex-end}.fv-editor-sender.device-h5 .fv-editor-body{padding:6px 10px}.fv-editor-sender.is-focused .fv-editor-body{border-color:var(--el-color-primary,#409eff)}.fv-editor-sender.is-disabled .fv-editor-body{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-editor-sender .fv-editor-footer{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);padding:6px 12px}.fv-editor-mention-popover .fv-editor-mention-panel{max-height:260px;overflow-y:auto;padding:4px}.fv-editor-mention-popover .fv-editor-mention-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:4px 8px}.fv-editor-mention-popover .fv-editor-mention-loading{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);padding:8px;text-align:center}.fv-editor-mention-popover .fv-editor-mention-item{align-items:center;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font-size:var(--el-font-size-base,14px);gap:8px;padding:6px 8px}.fv-editor-mention-popover .fv-editor-mention-item.is-active,.fv-editor-mention-popover .fv-editor-mention-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-avatar{align-items:center;background-color:var(--el-fill-color,#e9e9eb);border-radius:50%;color:var(--el-text-color-regular,#606266);display:inline-flex;flex-shrink:0;font-size:var(--el-font-size-small,12px);height:24px;justify-content:center;overflow:hidden;width:24px}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-avatar img{height:100%;object-fit:cover;width:100%}.fv-editor-mention-popover .fv-editor-mention-item .fv-editor-mention-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-editor-tip-popover .fv-editor-tip-panel{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:6px 8px}.fv-editor-select-dialog .fv-editor-select-group+.fv-editor-select-group{margin-top:12px}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-title{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);font-weight:600;margin-bottom:8px}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-grid{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(96px,1fr))}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item{align-items:center;border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:var(--el-border-radius-base,4px);cursor:pointer;display:flex;flex-direction:column;gap:4px;padding:8px;transition:border-color .2s}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item:hover{border-color:var(--el-color-primary,#409eff)}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item .fv-editor-select-preview{border-radius:var(--el-border-radius-base,4px);height:56px;object-fit:cover;width:100%}.fv-editor-select-dialog .fv-editor-select-group .fv-editor-select-item .fv-editor-select-name{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-small,12px);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@keyframes fv-editor-slide-down{0%{max-height:0;opacity:0}to{max-height:300px;opacity:1}}.fv-thinking{background-color:var(--fv-thinking-bg,transparent);border-radius:var(--el-border-radius-base,4px);box-sizing:border-box;color:var(--fv-thinking-color,var(--el-text-color-regular,#606266));display:flex;flex-direction:column;width:100%}.fv-thinking .fv-thinking-toggle{align-items:center;background:none;border:none;color:inherit;cursor:pointer;display:inline-flex;font:inherit;font-size:15px;gap:6px;line-height:22px;padding:4px 0;text-align:left;transition:color .2s;user-select:none}.fv-thinking .fv-thinking-toggle:hover{color:var(--fv-thinking-color,var(--el-color-primary,#409eff))}.fv-thinking .fv-thinking-toggle:focus{outline:none}.fv-thinking.is-disabled .fv-thinking-toggle{cursor:not-allowed;opacity:.6}.fv-thinking .fv-thinking-status-icon{align-items:center;display:inline-flex;font-size:16px;height:18px;justify-content:center;width:18px}.fv-thinking .fv-thinking-status-icon .fv-thinking-dot{background-color:var(--el-color-primary,#409eff);border-radius:50%;height:8px;width:8px}.fv-thinking .fv-thinking-status-icon .is-loading{animation:fv-thinking-rotate 1s linear infinite;color:var(--el-color-primary,#409eff)}.fv-thinking .fv-thinking-status-icon .is-success{color:var(--el-color-success,#67c23a)}.fv-thinking .fv-thinking-status-icon .is-interrupted{color:var(--el-color-warning,#e6a23c)}.fv-thinking .fv-thinking-status-icon .is-error{color:var(--el-color-danger,#f56c6c)}.fv-thinking .fv-thinking-label{flex:0 1 auto;max-width:60%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-thinking .fv-thinking-arrow{align-items:center;display:inline-flex;transition:transform .3s ease}.fv-thinking .fv-thinking-arrow.is-open{transform:rotate(180deg)}.fv-thinking .fv-thinking-content{box-sizing:border-box;color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);line-height:22px;padding:8px 0;white-space:pre-wrap;word-break:break-word}@keyframes fv-thinking-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fv-chain{box-sizing:border-box;display:flex;font-size:var(--el-font-size-base,14px)}.fv-chain.is-vertical{flex-direction:column}.fv-chain.is-vertical .fv-chain-item{align-items:flex-start;display:flex;gap:10px;position:relative}.fv-chain.is-vertical .fv-chain-item:not(:last-child):before{background-color:var(--el-border-color,#dcdfe6);border-radius:1px;bottom:0;content:"";left:9px;margin-left:-1px;position:absolute;top:20px;width:2px}.fv-chain.is-horizontal{flex-direction:row;gap:24px}.fv-chain.is-horizontal .fv-chain-item{align-items:flex-start;display:flex;gap:6px}.fv-chain .fv-chain-node{align-items:center;display:inline-flex;flex-shrink:0;font-size:16px;height:18px;justify-content:center;margin-top:2px;position:relative;width:18px}.fv-chain .fv-chain-node .fv-chain-dot{background-color:var(--el-fill-color-blank,#fff);border:2px solid var(--el-border-color,#dcdfe6);border-radius:50%;box-sizing:border-box;height:8px;width:8px}.fv-chain .fv-chain-item.status-success .fv-chain-node{color:var(--el-color-success,#67c23a)}.fv-chain .fv-chain-item.status-success .fv-chain-node .fv-chain-dot{background-color:var(--el-color-success,#67c23a);border-color:var(--el-color-success,#67c23a)}.fv-chain .fv-chain-item.status-error .fv-chain-node{color:var(--el-color-danger,#f56c6c)}.fv-chain .fv-chain-item.status-error .fv-chain-node .fv-chain-dot{background-color:var(--el-color-danger,#f56c6c);border-color:var(--el-color-danger,#f56c6c)}.fv-chain .fv-chain-item.status-loading .fv-chain-node{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-item.status-loading .fv-chain-node .is-loading{animation:fv-chain-rotate 1s linear infinite}.fv-chain .fv-chain-item.status-loading .fv-chain-node .is-searching{animation:fv-chain-searching .9s ease-in-out infinite}.fv-chain .fv-chain-item.status-loading .fv-chain-node .fv-chain-dot{border-color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-item.status-pending .fv-chain-title{color:var(--el-text-color-placeholder,#a8abb2)}.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-node .el-icon{animation:fv-chain-pulse 1.1s ease-in-out infinite}.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-head-preview,.fv-chain .fv-chain-item.is-text.is-thinking .fv-chain-head-title,.fv-chain .fv-chain-item.status-loading .fv-chain-title{-webkit-text-fill-color:transparent;animation:fv-chain-shine 2.2s linear infinite;-webkit-background-clip:text;background-clip:text;background-image:linear-gradient(100deg,var(--el-text-color-secondary,#909399) 0,var(--el-text-color-secondary,#909399) 40%,var(--el-color-primary,#409eff) 50%,var(--el-text-color-secondary,#909399) 60%,var(--el-text-color-secondary,#909399) 100%);background-size:200% 100%;color:transparent}.fv-chain .fv-chain-main{flex:1;min-width:0;padding-bottom:4px}.fv-chain .fv-chain-main .fv-chain-title{color:var(--el-text-color-primary,#303133);line-height:22px;white-space:pre-wrap;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-title.is-clamped{max-height:calc(var(--fv-chain-title-max-lines, 3)*22px);overflow:hidden}.fv-chain .fv-chain-main .fv-chain-expand{background:none;border:none;color:var(--el-text-color-primary,#303133);cursor:pointer;display:inline-block;font-size:var(--el-font-size-small,12px);line-height:22px;margin-left:6px;position:relative;top:1px;user-select:none;vertical-align:middle}.fv-chain .fv-chain-main .fv-chain-expand .el-icon{display:block;font-size:16px;height:22px}.fv-chain .fv-chain-main .fv-chain-expand:hover{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-main .fv-chain-description{color:var(--el-text-color-regular,#606266);font-size:var(--el-font-size-base,14px);line-height:22px;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-head{align-items:center;background:none;border:none;color:var(--el-text-color-primary,#303133);cursor:pointer;display:flex;font:inherit;gap:8px;line-height:22px;padding:0;text-align:left;user-select:none;width:100%}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-title{flex:0 0 auto}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-preview{color:var(--el-text-color-placeholder,#a8abb2);flex:0 1 auto;font-size:var(--el-font-size-small,12px);min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-chain .fv-chain-main .fv-chain-head .fv-chain-head-arrow{color:var(--el-text-color-secondary,#909399);flex:0 0 auto;font-size:14px}.fv-chain .fv-chain-main .fv-chain-head:hover .fv-chain-head-title{color:var(--el-color-primary,#409eff)}.fv-chain .fv-chain-main .fv-chain-head:focus{outline:none}.fv-chain .fv-chain-main .fv-chain-body{margin-top:2px;padding-left:2px;position:relative}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom,.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top{height:35px;left:0;pointer-events:none;position:absolute;right:0;z-index:1}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom:before,.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top{top:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-top:before{background:linear-gradient(to bottom,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 0,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 65%,transparent) 8.75px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 35%,transparent) 17.5px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 12%,transparent) 26.25px,transparent 35px)}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom{bottom:0}.fv-chain .fv-chain-main .fv-chain-body .scroll-edge-fade-bottom:before{background:linear-gradient(to top,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 0,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 65%,transparent) 8.75px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 35%,transparent) 17.5px,color-mix(in srgb,var(--fv-chain-edge-fade-color,var(--el-bg-color,#fff)) 12%,transparent) 26.25px,transparent 35px)}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-body-text{display:block;white-space:pre-wrap;word-break:break-word}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-body-text,.fv-chain .fv-chain-main .fv-chain-body .fv-typewriter{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:22px}.fv-chain .fv-chain-main .fv-chain-body .fv-chain-description{margin-top:4px}@keyframes fv-chain-rotate{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes fv-chain-searching{0%,to{transform:rotate(-30deg) scale(1)}25%{transform:rotate(0deg) scale(1.15)}50%{transform:rotate(30deg) scale(1)}75%{transform:rotate(0deg) scale(.92)}}@keyframes fv-chain-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.3)}}@keyframes fv-chain-shine{0%{background-position:200% 0}to{background-position:-200% 0}}.fv-welcome{box-sizing:border-box;flex-direction:column;padding:var(--el-main-padding,20px);text-align:center;width:100%}.fv-welcome,.fv-welcome-icon{align-items:center;display:flex;justify-content:center}.fv-welcome-icon .fv-welcome-avatar{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:calc(var(--el-border-radius-base, 4px) + 8px);color:var(--el-color-primary,#409eff);font-size:36px;height:72px;width:72px}.fv-welcome-icon .fv-welcome-gif{display:block;height:var(--fv-welcome-icon-size,96px);object-fit:contain;width:var(--fv-welcome-icon-size,96px)}.fv-welcome-main{align-items:center;min-width:0}.fv-welcome-main,.fv-welcome-text{display:flex;flex-direction:column}.fv-welcome-text{padding-left:4px}.fv-welcome-suggestions{width:100%}.fv-welcome-name{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-extra-large,20px);font-weight:600;line-height:1.4;margin:0}.fv-welcome-name .fv-welcome-name-accent{color:var(--el-color-primary,#409eff)}.fv-welcome-description{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);margin:8px 0 0;max-width:480px;white-space:pre-wrap;word-break:break-word}.fv-welcome.is-horizontal{align-items:flex-end;flex-direction:row;gap:0;justify-content:space-between;padding:0;position:relative;text-align:left}.fv-welcome.is-horizontal .fv-welcome-main{align-items:flex-start;margin-bottom:12px;max-width:100%;order:0}.fv-welcome.is-horizontal .fv-welcome-suggestions{margin-top:12px}.fv-welcome.is-horizontal .fv-welcome-name{font-size:var(--fv-welcome-name-size,25px);letter-spacing:.2px;line-height:34px;margin-bottom:6px}.fv-welcome.is-horizontal .fv-welcome-description{font-size:var(--el-font-size-small,12px);line-height:21px;margin-top:0;max-width:var(--fv-welcome-desc-max-width,690px)}.fv-welcome.is-horizontal .fv-welcome-icon{margin-bottom:-44px;order:1;pointer-events:none;transform:translateX(40px);z-index:1}.fv-welcome.is-horizontal .fv-welcome-gif.is-hero{height:200px;width:200px}.fv-prompts{box-sizing:border-box;width:100%}.fv-prompts .fv-prompts-title{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);margin-bottom:12px}.fv-prompts .fv-prompts-list{display:flex;flex-wrap:wrap;gap:12px}.fv-prompts .fv-prompts-list.is-nowrap{flex-wrap:nowrap;overflow-x:auto}.fv-prompts .fv-prompts-list.is-nowrap .fv-prompt-item{flex:0 0 auto}.fv-prompts .fv-prompt-item{background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;cursor:pointer;flex:1 1 200px;max-width:100%;padding:12px 14px;transition:background-color var(--el-transition-duration,.3s),border-color var(--el-transition-duration,.3s)}.fv-prompts .fv-prompt-item:hover:not(.is-disabled){background-color:var(--el-fill-color-light,#f5f7fa);border-color:var(--el-border-color,#dcdfe6)}.fv-prompts .fv-prompt-item:focus-visible:not(.is-disabled){border-color:var(--el-color-primary,#409eff);outline:none}.fv-prompts .fv-prompt-item.is-disabled{background-color:var(--el-fill-color-lighter,#fafafa);cursor:not-allowed;opacity:.6}.fv-prompts .fv-prompt-item.is-disabled,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-description,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-icon,.fv-prompts .fv-prompt-item.is-disabled .fv-prompt-item-label{color:var(--el-text-color-placeholder,#a8abb2)}.fv-prompts .fv-prompt-item .fv-prompt-item-main{align-items:flex-start;display:flex;gap:10px}.fv-prompts .fv-prompt-item .fv-prompt-item-icon{color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:18px;margin-top:2px}.fv-prompts .fv-prompt-item .fv-prompt-item-text{flex:1;min-width:0}.fv-prompts .fv-prompt-item .fv-prompt-item-label{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);font-weight:500;line-height:var(--el-font-line-height-primary,24px);word-break:break-word}.fv-prompts .fv-prompt-item .fv-prompt-item-description{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);line-height:var(--el-font-line-height-primary,24px);margin-top:2px;word-break:break-word}.fv-files-card{align-items:center;background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);box-sizing:border-box;display:flex;gap:8px;max-width:100%;min-width:0;padding:8px 24px 8px 10px;position:relative;transition:border-color var(--el-transition-duration,.3s)}.fv-files-card .fv-files-card-icon{color:var(--el-text-color-regular,#606266);flex-shrink:0;font-size:36px}.fv-files-card .fv-files-card-info{flex:1;min-width:0}.fv-files-card .fv-files-card-name{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-small,12px);line-height:18px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-files-card .fv-files-card-size{color:var(--el-text-color-secondary,#909399)}.fv-files-card .fv-files-card-error,.fv-files-card .fv-files-card-size{font-size:var(--el-font-size-extra-small,12px);line-height:16px;white-space:nowrap}.fv-files-card .fv-files-card-error{color:var(--el-color-danger,#f56c6c);max-width:100%;overflow:hidden;text-overflow:ellipsis}.fv-files-card .fv-files-card-thumb{align-items:center;background-color:var(--el-fill-color-light,#f5f7fa);border-radius:var(--el-border-radius-base,4px);display:flex;flex-shrink:0;height:48px;justify-content:center;overflow:hidden;width:48px}.fv-files-card .fv-files-card-thumb .fv-files-card-img{display:block;height:100%;object-fit:cover;width:100%}.fv-files-card .fv-files-card-thumb .fv-files-card-thumb-placeholder{color:var(--el-text-color-placeholder,#a8abb2);font-size:20px}.fv-files-card .fv-files-card-loading{animation:fv-files-card-rotating 1.5s linear infinite;color:var(--el-color-primary,#409eff);flex-shrink:0;font-size:20px}.fv-files-card .fv-files-card-download,.fv-files-card .fv-files-card-remove{align-items:center;background-color:transparent;border:none;border-radius:50%;color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;justify-content:center;opacity:0;padding:0;position:absolute;right:2px;top:2px;transition:opacity var(--el-transition-duration,.3s),color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s)}.fv-files-card .fv-files-card-remove{font-size:12px;height:18px;width:18px}.fv-files-card .fv-files-card-download{font-size:16px;height:28px;margin-top:-14px;top:50%;width:28px}.fv-files-card.has-download{padding-right:34px}.fv-files-card .fv-files-card-remove:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-danger,#f56c6c)}.fv-files-card .fv-files-card-download:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-files-card:hover .fv-files-card-download,.fv-files-card:hover .fv-files-card-remove{opacity:1}.fv-files-card.is-error{border-color:var(--el-color-danger,#f56c6c)}.fv-files-card.is-error .fv-files-card-name{color:var(--el-color-danger,#f56c6c)}@keyframes fv-files-card-rotating{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fv-attachments{align-items:flex-start;box-sizing:border-box;display:flex;gap:8px;width:100%}.fv-attachments .fv-attachments-input{display:none}.fv-attachments .fv-attachments-trigger{align-items:center;background-color:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;flex-shrink:0;font-size:16px;height:32px;justify-content:center;padding:0;transition:color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:32px}.fv-attachments .fv-attachments-trigger:hover:not(:disabled){background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-attachments .fv-attachments-trigger.is-full,.fv-attachments .fv-attachments-trigger:disabled{color:var(--el-text-color-placeholder,#a8abb2);cursor:not-allowed}.fv-attachments .fv-attachments-list{display:flex;flex-wrap:wrap;gap:8px;min-width:0}.fv-attachments .fv-attachments-item{align-items:center;display:flex;min-width:0;position:relative}.fv-attachments .fv-attachments-item .fv-files-card{max-width:240px}.fv-attachments .fv-attachments-item .fv-attachments-retry{align-items:center;background-color:transparent;border:none;border-radius:50%;color:var(--el-text-color-secondary,#909399);cursor:pointer;display:flex;font-size:14px;height:20px;justify-content:center;margin-left:4px;padding:0;transition:color var(--el-transition-duration,.3s),background-color var(--el-transition-duration,.3s);width:20px}.fv-attachments .fv-attachments-item .fv-attachments-retry:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-color-primary,#409eff)}.fv-attachments .fv-attachments-tip{color:var(--el-text-color-placeholder,#a8abb2);flex:1;font-size:var(--el-font-size-extra-small,12px);line-height:32px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-conversations{box-sizing:border-box;overflow-y:auto;width:100%}.fv-conversations .fv-conversations-group .fv-conversations-group-title{background-color:var(--el-bg-color,#fff);color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-extra-small,12px);line-height:20px;padding:8px 12px 4px;position:sticky;top:0;z-index:1}.fv-conversations .fv-conversations-item{align-items:center;border-radius:var(--el-border-radius-base,4px);cursor:pointer;display:flex;gap:4px;padding:0 8px 0 12px;transition:background-color .2s;user-select:none}.fv-conversations .fv-conversations-item:hover{background-color:var(--el-fill-color-light,#f5f7fa)}.fv-conversations .fv-conversations-item:hover .fv-conversations-menu-btn{opacity:1;pointer-events:auto}.fv-conversations .fv-conversations-item.is-active{background-color:var(--el-color-primary-light-9,#ecf5ff);color:var(--el-color-primary,#409eff)}.fv-conversations .fv-conversations-item.is-active .fv-conversations-item-label{color:var(--el-color-primary,#409eff);font-weight:600}.fv-conversations .fv-conversations-item.is-disabled{color:var(--el-text-color-disabled,#a8abb2);cursor:not-allowed}.fv-conversations .fv-conversations-item.is-disabled .fv-conversations-item-label{color:var(--el-text-color-disabled,#a8abb2)}.fv-conversations .fv-conversations-item.is-disabled:hover{background-color:transparent}.fv-conversations .fv-conversations-item .fv-conversations-item-content{flex:1;min-width:0;padding:9px 0}.fv-conversations .fv-conversations-item .fv-conversations-item-content .fv-conversations-item-label{color:var(--el-text-color-regular,#606266);display:block;font-size:var(--el-font-size-base,14px);line-height:22px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-conversations .fv-conversations-item .fv-conversations-menu-btn{align-items:center;background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-secondary,#909399);cursor:pointer;display:inline-flex;flex-shrink:0;height:24px;justify-content:center;opacity:0;padding:0;pointer-events:none;transition:opacity .2s;width:24px}.fv-conversations .fv-conversations-item .fv-conversations-menu-btn:hover{background-color:var(--el-fill-color,#f0f2f5);color:var(--el-text-color-primary,#303133)}.fv-conversations.show-menu-always .fv-conversations-item .fv-conversations-menu-btn{opacity:1;pointer-events:auto}.fv-msg{align-items:flex-start;box-sizing:border-box;display:flex;gap:12px;padding:8px 0;width:100%}.fv-msg .fv-msg-avatar{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:var(--fv-msg-avatar-radius,calc(var(--el-border-radius-base, 4px) + 4px));color:var(--el-text-color-secondary,#909399);flex-shrink:0;font-size:calc(var(--fv-msg-avatar-size, 50px)/2);height:var(--fv-msg-avatar-size,50px);overflow:hidden;width:var(--fv-msg-avatar-size,50px)}.fv-msg .fv-msg-avatar,.fv-msg .fv-msg-avatar-bot{align-items:center;display:flex;justify-content:center}.fv-msg .fv-msg-avatar-bot{background-color:var(--el-color-primary,#409eff);border-radius:inherit;color:#fff;height:100%;width:100%}.fv-msg .fv-msg-avatar-img{border-radius:inherit;display:block;height:100%;object-fit:cover;transform:scale(var(--fv-msg-avatar-scale,1));width:100%}.fv-msg.is-user .fv-msg-avatar{background-color:var(--el-color-primary-light-8,#d9ecff);color:var(--el-color-primary,#409eff);order:2}.fv-msg .fv-msg-main{align-items:flex-start;display:flex;flex:1;flex-direction:column;min-width:0}.fv-msg .fv-msg-main .fv-msg-header{align-items:center;color:var(--el-text-color-secondary,#909399);display:flex;font-size:var(--el-font-size-small,12px);gap:8px;margin-bottom:2px}.fv-msg .fv-msg-main .fv-msg-header .fv-msg-model{background-color:var(--el-fill-color,#f0f2f5);border-radius:var(--el-border-radius-base,4px);line-height:18px;padding:0 6px}.fv-msg .fv-msg-main .fv-msg-files{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:4px}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file{align-items:center;background-color:transparent;border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-regular,#606266);cursor:pointer;display:inline-flex;font-family:inherit;font-size:var(--el-font-size-small,12px);padding:4px 8px;transition:border-color var(--el-transition-duration,.3s)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file:hover{border-color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file:focus-visible{border-color:var(--el-color-primary,#409eff);outline:none}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file .fv-msg-file-img{border-radius:var(--el-border-radius-base,4px);max-height:64px;max-width:64px;object-fit:cover}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file .fv-msg-file-name{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card{max-width:240px}.fv-msg .fv-msg-main .fv-msg-files .fv-msg-file-card .fv-files-card-remove{display:none}.fv-msg .fv-msg-main .fv-msg-tools{box-sizing:border-box;margin-bottom:8px;padding-bottom:8px;width:100%}.fv-msg .fv-msg-main .fv-msg-tools.has-separator{border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5)}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain{font-size:var(--el-font-size-base,14px)}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item:not(:last-child){padding-bottom:6px}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item:not(:last-child):before{background-color:var(--el-border-color,#dcdfe6);border-radius:1px;bottom:0;content:"";left:9px;margin-left:-1px;position:absolute;top:20px;width:2px}.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-description,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-head-title,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item.is-text .fv-chain-node,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-item.status-success .fv-chain-node,.fv-msg .fv-msg-main .fv-msg-tools .fv-chain .fv-chain-title{color:var(--el-text-color-secondary,#909399)}.fv-msg .fv-msg-main .fv-msg-content{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);max-width:100%;min-width:0;word-break:break-word}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-error{color:var(--el-color-danger,#f56c6c)}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending{align-items:center;display:inline-flex;gap:8px;padding:4px 0}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending .fv-msg-spinner{animation:fv-msg-rotate .8s linear infinite;border:2px solid var(--el-color-primary-light-8,#dceaff);border-radius:50%;border-top-color:var(--el-color-primary,#409eff);box-sizing:border-box;flex-shrink:0;height:16px;width:16px}.fv-msg .fv-msg-main .fv-msg-content .fv-msg-pending .fv-msg-pending-text{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-base,14px)}.fv-msg .fv-msg-main .fv-msg-content-user{background-color:var(--el-fill-color-light,#f5f7fa);border-radius:calc(var(--el-border-radius-base, 4px) + 4px);padding:8px 12px;white-space:pre-wrap}.fv-msg .fv-msg-main .fv-msg-followups{margin-top:6px}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup{background-color:var(--el-bg-color,#fff);border:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:calc(var(--el-border-radius-base, 4px) + 10px);box-sizing:border-box;color:var(--el-text-color-regular,#606266);cursor:pointer;font-size:var(--el-font-size-small,12px);line-height:20px;max-width:100%;overflow:hidden;padding:4px 12px;text-align:left;text-overflow:ellipsis;transition:border-color .15s,color .15s,background-color .15s;white-space:nowrap}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:hover:not(.is-disabled):not(:disabled){border-color:var(--el-color-primary-light-5,#a0cfff);color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:focus-visible{outline:2px solid var(--el-color-primary-light-5,#a0cfff);outline-offset:1px}.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup.is-disabled,.fv-msg .fv-msg-main .fv-msg-followups .fv-msg-followup:disabled{cursor:not-allowed;opacity:.55}.fv-msg .fv-msg-main .fv-msg-followups.is-list{align-items:stretch;border-top:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-direction:column;gap:0;margin-top:8px;padding-top:8px;width:100%}.fv-msg .fv-msg-main .fv-msg-followups.is-list .fv-msg-followup{border:none;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);border-radius:0;color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);line-height:var(--el-font-line-height-primary,24px);padding:6px 0;white-space:normal;width:100%}.fv-msg .fv-msg-main .fv-msg-followups.is-list .fv-msg-followups-title{color:var(--el-text-color-primary,#303133);font-size:var(--el-font-size-base,14px);font-weight:600;line-height:var(--el-font-line-height-primary,24px);margin-bottom:4px;user-select:none}.fv-msg .fv-msg-main .fv-msg-followups.is-chips{display:flex;flex-wrap:wrap;gap:8px}.fv-msg.is-user{flex-direction:row;justify-content:flex-end}.fv-msg.is-user .fv-msg-main{align-items:flex-end}.fv-msg.is-no-header{align-items:flex-start}.fv-msg.is-no-header .fv-msg-main{margin-top:calc((var(--fv-msg-avatar-size, 50px) - var(--el-font-line-height-primary, 24px))/2)}.fv-msg .fv-msg-actions{align-items:center;display:flex;gap:2px;margin-top:2px}.fv-msg .fv-msg-actions .el-button+.el-button{margin-left:0}.fv-msg .fv-msg-actions .fv-msg-branch{align-items:center;display:inline-flex;gap:2px;margin-left:6px}.fv-msg .fv-msg-actions .fv-msg-branch .fv-msg-branch-label{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);padding:0 2px}.fv-msg .fv-msg-actions .fv-msg-feedback{align-items:center;display:inline-flex;gap:2px;margin-left:4px}.fv-msg .fv-msg-actions .fv-msg-feedback .fv-msg-feedback-btn.is-active{color:var(--el-color-primary,#409eff)}.fv-msg .fv-msg-actions .fv-msg-time{color:var(--el-text-color-secondary,#909399);font-size:var(--el-font-size-small,12px);line-height:18px;margin-left:8px;user-select:none;white-space:nowrap}.fv-msg.is-user .fv-msg-actions{opacity:0;pointer-events:none;transition:opacity .15s}.fv-msg.is-user .fv-msg-actions .fv-msg-branch{margin-left:0}.fv-msg.is-user:focus-within .fv-msg-actions,.fv-msg.is-user:hover .fv-msg-actions{opacity:1;pointer-events:auto}@keyframes fv-msg-rotate{to{transform:rotate(1turn)}}.fv-msg-feedback-dialog .el-dialog__title{font-size:var(--el-font-size-base,14px)}.fv-msg-feedback-dialog .el-dialog__body{padding-bottom:8px;padding-top:8px}.fv-msg-feedback-dialog .el-dialog__footer{padding-top:0}.fv-messages{box-sizing:border-box;display:flex;flex:1;flex-direction:column;min-height:0;width:100%}.fv-messages .fv-messages-scroll{box-sizing:border-box;flex:1;min-height:0;overflow-y:auto;padding:0 16px}.fv-messages .fv-messages-inner{margin:0 auto;max-width:var(--fv-messages-max-width,none);position:relative}.fv-messages .fv-messages-empty{align-items:center;box-sizing:border-box;display:flex;flex:1;flex-direction:column;justify-content:flex-end;padding:32px 16px 0}.fv-messages .fv-messages-empty .fv-welcome.is-horizontal{max-width:var(--fv-welcome-max-width,var(--fv-empty-max-width,780px))}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-title{margin-bottom:8px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-list{flex-wrap:wrap;gap:8px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompts-list.is-nowrap{flex-wrap:nowrap;overflow-x:auto}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item{background-color:var(--el-bg-color,#fff);border-radius:16px;flex:0 0 auto;max-width:100%;padding:6px 12px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item:hover:not(.is-disabled){background-color:var(--el-fill-color-light,#f5f7fa)}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-main{align-items:center;gap:6px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-icon{font-size:14px;margin-top:0}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-label{color:var(--el-text-color-regular,#557096);font-size:var(--el-font-size-small,12px);font-weight:400;line-height:20px}.fv-messages .fv-messages-empty .fv-messages-prompts.is-strip .fv-prompt-item .fv-prompt-item-description{display:none}.fv-messages .fv-messages-back{bottom:16px;box-shadow:var(--el-box-shadow-light,0 0 12px rgba(0,0,0,.12));float:right;margin-right:16px;margin-top:-40px;pointer-events:auto;position:sticky;z-index:1}.fv-messages .fv-messages-back .fv-messages-back-icon{font-size:16px;line-height:1}.fv-messages-back-fade-enter-active,.fv-messages-back-fade-leave-active{transition:opacity .2s ease}.fv-messages-back-fade-enter-from,.fv-messages-back-fade-leave-to{opacity:0}.fv-ai-chat{background-color:var(--el-bg-color,#fff);box-sizing:border-box;color:var(--el-text-color-primary,#303133);display:flex;flex-direction:column;height:100%;min-height:0;width:100%}.fv-ai-chat .fv-thinking-content{padding:8px 0 0}.fv-ai-chat .fv-ai-chat-header{align-items:center;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-shrink:0;gap:12px;justify-content:space-between;padding:8px 16px}.fv-ai-chat .fv-ai-chat-header .fv-ai-chat-title{font-size:var(--el-font-size-base,14px);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.fv-ai-chat .fv-ai-chat-header .fv-ai-chat-models{flex-shrink:0;width:220px}.fv-ai-chat .fv-ai-chat-body{display:flex;flex:1;min-height:0;overflow:hidden}.fv-ai-chat .fv-ai-chat-footer{flex-shrink:0;padding:0 16px 12px}.fv-ai-chat.is-empty{--fv-empty-max-width:780px}.fv-ai-chat.is-empty .fv-ai-chat-footer{display:flex;justify-content:center}.fv-ai-chat.is-empty .fv-ai-chat-footer>.fv-sender{flex:0 1 var(--fv-empty-max-width);max-width:var(--fv-empty-max-width)}.fv-ai-chat.is-empty .fv-welcome.is-horizontal .fv-welcome-icon{transform:translateX(40px)}.fv-ai-chat.is-center-welcome .fv-ai-chat-body{flex:0 1 auto;margin-top:auto;min-height:0}.fv-ai-chat.is-center-welcome .fv-ai-chat-footer{margin-bottom:auto}html.dark .fv-ai-chat{background-color:var(--el-bg-color,#141414)}.fv-artifacts{background-color:var(--el-bg-color,#fff);border-left:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);box-sizing:border-box;display:flex;flex-direction:column;flex-shrink:0;max-width:var(--fv-artifacts-max-width,60%);min-width:var(--fv-artifacts-min-width,360px);overflow:hidden;width:var(--fv-artifacts-width,420px)}.fv-artifacts .fv-artifacts-tabs{align-items:center;border-bottom:var(--el-border-width,1px) solid var(--el-border-color-lighter,#ebeef5);display:flex;flex-shrink:0;gap:4px;overflow-x:auto;padding:6px 8px}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab{background:transparent;border:none;border-radius:var(--el-border-radius-base,4px);color:var(--el-text-color-regular,#606266);cursor:pointer;flex-shrink:0;font-size:var(--el-font-size-small,12px);line-height:1.4;padding:4px 10px;white-space:nowrap}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab:hover{background-color:var(--el-fill-color-light,#f5f7fa);color:var(--el-text-color-primary,#303133)}.fv-artifacts .fv-artifacts-tabs .fv-artifact-tab.is-active{background-color:var(--el-color-primary-light-9,#ecf5ff);color:var(--el-color-primary,#409eff)}.fv-artifacts .fv-artifacts-tabs .fv-artifacts-spacer{flex:1}.fv-artifacts .fv-artifacts-frame{background-color:var(--el-bg-color-page,#f2f3f5);border:none;flex:1;min-height:0;width:100%}html.dark .fv-artifacts{background-color:var(--el-bg-color,#141414)}
|
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"
|
|
@@ -33364,8 +33368,11 @@ const en = {
|
|
|
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
|
},
|
|
@@ -33496,9 +33503,13 @@ const ko = {
|
|
|
33496
33503
|
start: "\uC0DD\uAC01 \uC2DC\uC791",
|
|
33497
33504
|
thinking: "\uC0DD\uAC01 \uC911...",
|
|
33498
33505
|
end: "\uC0DD\uAC01 \uC644\uB8CC",
|
|
33506
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33507
|
+
interrupted: "\uC0DD\uAC01 \uC911\uB2E8",
|
|
33499
33508
|
error: "\uC0DD\uAC01 \uC911 \uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC5B4\uC694",
|
|
33500
33509
|
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33501
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",
|
|
33502
33513
|
/** 思考链 text 步标题(进行中/已完结) */
|
|
33503
33514
|
thinkingItem: "\uC0DD\uAC01\uD558\uB294 \uC911",
|
|
33504
33515
|
thoughtDoneItem: "\uC0DD\uAC01 \uC644\uB8CC"
|
|
@@ -33640,9 +33651,13 @@ const vi = {
|
|
|
33640
33651
|
start: "B\u1EAFt \u0111\u1EA7u suy lu\u1EADn",
|
|
33641
33652
|
thinking: "\u0110ang suy lu\u1EADn...",
|
|
33642
33653
|
end: "Suy lu\u1EADn xong",
|
|
33654
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33655
|
+
interrupted: "Suy lu\u1EADn b\u1ECB gi\xE1n \u0111o\u1EA1n",
|
|
33643
33656
|
error: "Suy lu\u1EADn g\u1EB7p l\u1ED7i",
|
|
33644
33657
|
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33645
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",
|
|
33646
33661
|
/** 思考链 text 步标题(进行中/已完结) */
|
|
33647
33662
|
thinkingItem: "\u0110ang suy lu\u1EADn",
|
|
33648
33663
|
thoughtDoneItem: "\u0110\xE3 suy lu\u1EADn xong"
|
|
@@ -33784,9 +33799,13 @@ const zhHK = {
|
|
|
33784
33799
|
start: "\u958B\u59CB\u601D\u8003",
|
|
33785
33800
|
thinking: "\u601D\u8003\u4E2D...",
|
|
33786
33801
|
end: "\u601D\u8003\u5B8C\u6210",
|
|
33802
|
+
/** 用戶中斷(useChat.stop()):思考鏈頭文案,與 error(真實出錯)區分 */
|
|
33803
|
+
interrupted: "\u601D\u8003\u4E2D\u65B7",
|
|
33787
33804
|
error: "\u601D\u8003\u9047\u5230\u554F\u984C",
|
|
33788
33805
|
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33789
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",
|
|
33790
33809
|
/** 思考链 text 步标题(进行中/已完结) */
|
|
33791
33810
|
thinkingItem: "\u6B63\u5728\u601D\u8003",
|
|
33792
33811
|
thoughtDoneItem: "\u601D\u8003\u5B8C\u6210"
|
|
@@ -34055,9 +34074,9 @@ var _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
34055
34074
|
onMouseover: onRootOver,
|
|
34056
34075
|
onMouseleave: hideTip
|
|
34057
34076
|
}, null, 40, _hoisted_1$i),
|
|
34058
|
-
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 "),
|
|
34059
34079
|
(openBlock(), createBlock(Teleport, { to: "body" }, [
|
|
34060
|
-
createCommentVNode(" \u521D\u59CB\u5185\u8054 display:none(\u4E0D\u4F9D\u8D56 css \u52A0\u8F7D\u65F6\u5E8F),showTip \u65F6\u7F6E block "),
|
|
34061
34080
|
createElementVNode(
|
|
34062
34081
|
"div",
|
|
34063
34082
|
{
|
|
@@ -36985,6 +37004,7 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
36985
37004
|
start: dict.value.thinking.start,
|
|
36986
37005
|
thinking: dict.value.thinking.thinking,
|
|
36987
37006
|
end: dict.value.thinking.end,
|
|
37007
|
+
interrupted: dict.value.thinking.interrupted,
|
|
36988
37008
|
error: dict.value.thinking.error
|
|
36989
37009
|
};
|
|
36990
37010
|
return m[props.status];
|
|
@@ -37042,8 +37062,17 @@ var _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
37042
37062
|
]),
|
|
37043
37063
|
_: 1
|
|
37044
37064
|
/* STABLE */
|
|
37045
|
-
})) : (openBlock(), createBlock(unref(ElIcon), {
|
|
37065
|
+
})) : __props.status === "interrupted" ? (openBlock(), createBlock(unref(ElIcon), {
|
|
37046
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,
|
|
37047
37076
|
class: "is-error"
|
|
37048
37077
|
}, {
|
|
37049
37078
|
default: withCtx(() => [
|
|
@@ -39269,7 +39298,7 @@ function useChat(options) {
|
|
|
39269
39298
|
for (const a of activeAdapters.keys()) a.abort();
|
|
39270
39299
|
activeAdapters.clear();
|
|
39271
39300
|
for (const m of Object.values(msgs.messages.value)) {
|
|
39272
|
-
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: "" });
|
|
39273
39302
|
}
|
|
39274
39303
|
}
|
|
39275
39304
|
function resolveTarget(messageId) {
|
|
@@ -39478,11 +39507,14 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39478
39507
|
const dict = useLocaleDict(() => props.locale);
|
|
39479
39508
|
const emit = __emit;
|
|
39480
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);
|
|
39481
39512
|
const hasContentSeparator = computed(
|
|
39482
39513
|
() => !!props.message.content || props.message.status === "done" || props.message.status === "error"
|
|
39483
39514
|
);
|
|
39484
39515
|
const thinkingStatus = computed(() => {
|
|
39485
39516
|
if (props.message.status === "error") return "error";
|
|
39517
|
+
if (isInterrupted.value) return "interrupted";
|
|
39486
39518
|
if (props.message.status === "pending") return props.message.reasoning ? "thinking" : "start";
|
|
39487
39519
|
if (props.message.status === "streaming") return "thinking";
|
|
39488
39520
|
return "end";
|
|
@@ -39491,6 +39523,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39491
39523
|
const hasToolSteps = computed(() => (props.message.toolSteps?.length ?? 0) > 0);
|
|
39492
39524
|
const toolThinkingStatus = computed(() => {
|
|
39493
39525
|
if (props.message.status === "error") return "error";
|
|
39526
|
+
if (isInterrupted.value) return "interrupted";
|
|
39494
39527
|
if (props.message.status === "pending" || props.message.status === "streaming") return "thinking";
|
|
39495
39528
|
return "end";
|
|
39496
39529
|
});
|
|
@@ -39537,7 +39570,8 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39537
39570
|
const chainSummaryLabel = computed(() => {
|
|
39538
39571
|
if (props.message.status !== "done") return void 0;
|
|
39539
39572
|
if (!toolStepCount.value) return void 0;
|
|
39540
|
-
|
|
39573
|
+
const tpl = isInterrupted.value ? dict.value.thinking.interruptedWithTools : dict.value.thinking.endWithTools;
|
|
39574
|
+
return tpl.split("{n}").join(String(toolStepCount.value));
|
|
39541
39575
|
});
|
|
39542
39576
|
const wasStreaming = ref(false);
|
|
39543
39577
|
watch(
|
|
@@ -39669,6 +39703,20 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39669
39703
|
const s = props.message.suggestions;
|
|
39670
39704
|
return s && s.length ? s : [];
|
|
39671
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
|
+
);
|
|
39672
39720
|
const followupsEnabled = computed(() => props.message.status === "done");
|
|
39673
39721
|
const followupTitle = computed(() => dict.value.aiMessage.followupsTitle);
|
|
39674
39722
|
function onFollowup(item) {
|
|
@@ -39790,7 +39838,12 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39790
39838
|
__expose({ message: computed(() => props.message), expandThoughtChain, collapseThoughtChain });
|
|
39791
39839
|
return (_ctx, _cache) => {
|
|
39792
39840
|
return openBlock(), createElementBlock("div", {
|
|
39793
|
-
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
|
+
}]]),
|
|
39794
39847
|
"data-message-id": __props.message.id
|
|
39795
39848
|
}, [
|
|
39796
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) "),
|
|
@@ -39836,7 +39889,7 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
39836
39889
|
)) : createCommentVNode("v-if", true),
|
|
39837
39890
|
createElementVNode("div", _hoisted_4$1, [
|
|
39838
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 "),
|
|
39839
|
-
|
|
39892
|
+
showHeader.value ? (openBlock(), createElementBlock("div", _hoisted_5, [
|
|
39840
39893
|
isUser.value ? renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
|
|
39841
39894
|
createTextVNode(
|
|
39842
39895
|
toDisplayString(__props.userName || unref(dict).aiMessage.defaultUserName),
|
|
@@ -40256,8 +40309,8 @@ var _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
40256
40309
|
/* TEXT */
|
|
40257
40310
|
)) : createCommentVNode("v-if", true)
|
|
40258
40311
|
])) : createCommentVNode("v-if", true),
|
|
40259
|
-
createCommentVNode(" \u8FFD\u95EE\u5EFA\u8BAE:\u64CD\u4F5C\u533A(\u5DE5\u5177\u680F)\u4E0B\u65B9,\u5206\u9694\u7EBF + \
|
|
40260
|
-
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", {
|
|
40261
40314
|
key: 7,
|
|
40262
40315
|
class: normalizeClass(["fv-msg-followups", `is-${__props.followupStyle}`]),
|
|
40263
40316
|
role: "listbox",
|
package/lib/index.js
CHANGED
|
@@ -33227,9 +33227,13 @@
|
|
|
33227
33227
|
start: "\u5F00\u59CB\u601D\u8003",
|
|
33228
33228
|
thinking: "\u601D\u8003\u4E2D...",
|
|
33229
33229
|
end: "\u601D\u8003\u5B8C\u6210",
|
|
33230
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33231
|
+
interrupted: "\u601D\u8003\u4E2D\u65AD",
|
|
33230
33232
|
error: "\u601D\u8003\u9047\u5230\u95EE\u9898",
|
|
33231
33233
|
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33232
33234
|
endWithTools: "\u601D\u8003\u5B8C\u6210\uFF0C\u4F7F\u7528 {n} \u4E2A\u5DE5\u5177",
|
|
33235
|
+
/** 多 item 总折叠头汇总文案(用户中断态,带工具次数;{n} = 工具步数量) */
|
|
33236
|
+
interruptedWithTools: "\u601D\u8003\u4E2D\u65AD\uFF0C\u4F7F\u7528 {n} \u4E2A\u5DE5\u5177",
|
|
33233
33237
|
/** 思考链 text 步标题(进行中/已完结) */
|
|
33234
33238
|
thinkingItem: "\u6B63\u5728\u601D\u8003",
|
|
33235
33239
|
thoughtDoneItem: "\u601D\u8003\u5B8C\u6210"
|
|
@@ -33371,8 +33375,11 @@
|
|
|
33371
33375
|
start: "Thinking",
|
|
33372
33376
|
thinking: "Thinking...",
|
|
33373
33377
|
end: "Thought complete",
|
|
33378
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33379
|
+
interrupted: "Thought interrupted",
|
|
33374
33380
|
error: "Something went wrong",
|
|
33375
33381
|
endWithTools: "Thought complete, used {n} tools",
|
|
33382
|
+
interruptedWithTools: "Thought interrupted, used {n} tools",
|
|
33376
33383
|
thinkingItem: "Thinking",
|
|
33377
33384
|
thoughtDoneItem: "Thought complete"
|
|
33378
33385
|
},
|
|
@@ -33503,9 +33510,13 @@
|
|
|
33503
33510
|
start: "\uC0DD\uAC01 \uC2DC\uC791",
|
|
33504
33511
|
thinking: "\uC0DD\uAC01 \uC911...",
|
|
33505
33512
|
end: "\uC0DD\uAC01 \uC644\uB8CC",
|
|
33513
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33514
|
+
interrupted: "\uC0DD\uAC01 \uC911\uB2E8",
|
|
33506
33515
|
error: "\uC0DD\uAC01 \uC911 \uBB38\uC81C\uAC00 \uBC1C\uC0DD\uD588\uC5B4\uC694",
|
|
33507
33516
|
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33508
33517
|
endWithTools: "\uC0DD\uAC01 \uC644\uB8CC, \uB3C4\uAD6C {n}\uAC1C \uC0AC\uC6A9",
|
|
33518
|
+
/** 多 item 总折叠头汇总文案(用户中断态,带工具次数;{n} = 工具步数量) */
|
|
33519
|
+
interruptedWithTools: "\uC0DD\uAC01 \uC911\uB2E8, \uB3C4\uAD6C {n}\uAC1C \uC0AC\uC6A9",
|
|
33509
33520
|
/** 思考链 text 步标题(进行中/已完结) */
|
|
33510
33521
|
thinkingItem: "\uC0DD\uAC01\uD558\uB294 \uC911",
|
|
33511
33522
|
thoughtDoneItem: "\uC0DD\uAC01 \uC644\uB8CC"
|
|
@@ -33647,9 +33658,13 @@
|
|
|
33647
33658
|
start: "B\u1EAFt \u0111\u1EA7u suy lu\u1EADn",
|
|
33648
33659
|
thinking: "\u0110ang suy lu\u1EADn...",
|
|
33649
33660
|
end: "Suy lu\u1EADn xong",
|
|
33661
|
+
/** 用户中断(useChat.stop()):思考链头文案,与 error(真实出错)区分 */
|
|
33662
|
+
interrupted: "Suy lu\u1EADn b\u1ECB gi\xE1n \u0111o\u1EA1n",
|
|
33650
33663
|
error: "Suy lu\u1EADn g\u1EB7p l\u1ED7i",
|
|
33651
33664
|
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33652
33665
|
endWithTools: "Suy lu\u1EADn xong, \u0111\xE3 d\xF9ng {n} c\xF4ng c\u1EE5",
|
|
33666
|
+
/** 多 item 总折叠头汇总文案(用户中断态,带工具次数;{n} = 工具步数量) */
|
|
33667
|
+
interruptedWithTools: "Suy lu\u1EADn b\u1ECB gi\xE1n \u0111o\u1EA1n, \u0111\xE3 d\xF9ng {n} c\xF4ng c\u1EE5",
|
|
33653
33668
|
/** 思考链 text 步标题(进行中/已完结) */
|
|
33654
33669
|
thinkingItem: "\u0110ang suy lu\u1EADn",
|
|
33655
33670
|
thoughtDoneItem: "\u0110\xE3 suy lu\u1EADn xong"
|
|
@@ -33791,9 +33806,13 @@
|
|
|
33791
33806
|
start: "\u958B\u59CB\u601D\u8003",
|
|
33792
33807
|
thinking: "\u601D\u8003\u4E2D...",
|
|
33793
33808
|
end: "\u601D\u8003\u5B8C\u6210",
|
|
33809
|
+
/** 用戶中斷(useChat.stop()):思考鏈頭文案,與 error(真實出錯)區分 */
|
|
33810
|
+
interrupted: "\u601D\u8003\u4E2D\u65B7",
|
|
33794
33811
|
error: "\u601D\u8003\u9047\u5230\u554F\u984C",
|
|
33795
33812
|
/** 多 item 总折叠头汇总文案(落定态,带工具次数;{n} = 工具步数量) */
|
|
33796
33813
|
endWithTools: "\u601D\u8003\u5B8C\u6210\uFF0C\u4F7F\u7528\u4E86 {n} \u500B\u5DE5\u5177",
|
|
33814
|
+
/** 多 item 总折叠头汇总文案(用戶中斷態,带工具次数;{n} = 工具步数量) */
|
|
33815
|
+
interruptedWithTools: "\u601D\u8003\u4E2D\u65B7\uFF0C\u4F7F\u7528\u4E86 {n} \u500B\u5DE5\u5177",
|
|
33797
33816
|
/** 思考链 text 步标题(进行中/已完结) */
|
|
33798
33817
|
thinkingItem: "\u6B63\u5728\u601D\u8003",
|
|
33799
33818
|
thoughtDoneItem: "\u601D\u8003\u5B8C\u6210"
|
|
@@ -34062,9 +34081,9 @@
|
|
|
34062
34081
|
onMouseover: onRootOver,
|
|
34063
34082
|
onMouseleave: hideTip
|
|
34064
34083
|
}, null, 40, _hoisted_1$i),
|
|
34065
|
-
vue.createCommentVNode(" \u8868\u683C\u5DE5\u5177\u680F tooltip \u5355\u4F8B\u6D6E\u5C42:body \u7EA7 Teleport(fixed \u5B9A\u4F4D\u4E0D\u53D7\u6EDA\u52A8\u88C1\u526A,\
|
|
34084
|
+
vue.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 "),
|
|
34085
|
+
vue.createCommentVNode(" tooltip div \u521D\u59CB\u5185\u8054 display:none(\u4E0D\u4F9D\u8D56 css \u52A0\u8F7D\u65F6\u5E8F),showTip \u65F6\u7F6E block "),
|
|
34066
34086
|
(vue.openBlock(), vue.createBlock(vue.Teleport, { to: "body" }, [
|
|
34067
|
-
vue.createCommentVNode(" \u521D\u59CB\u5185\u8054 display:none(\u4E0D\u4F9D\u8D56 css \u52A0\u8F7D\u65F6\u5E8F),showTip \u65F6\u7F6E block "),
|
|
34068
34087
|
vue.createElementVNode(
|
|
34069
34088
|
"div",
|
|
34070
34089
|
{
|
|
@@ -36992,6 +37011,7 @@
|
|
|
36992
37011
|
start: dict.value.thinking.start,
|
|
36993
37012
|
thinking: dict.value.thinking.thinking,
|
|
36994
37013
|
end: dict.value.thinking.end,
|
|
37014
|
+
interrupted: dict.value.thinking.interrupted,
|
|
36995
37015
|
error: dict.value.thinking.error
|
|
36996
37016
|
};
|
|
36997
37017
|
return m[props.status];
|
|
@@ -37049,8 +37069,17 @@
|
|
|
37049
37069
|
]),
|
|
37050
37070
|
_: 1
|
|
37051
37071
|
/* STABLE */
|
|
37052
|
-
})) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
37072
|
+
})) : __props.status === "interrupted" ? (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
37053
37073
|
key: 3,
|
|
37074
|
+
class: "is-interrupted"
|
|
37075
|
+
}, {
|
|
37076
|
+
default: vue.withCtx(() => [
|
|
37077
|
+
vue.createVNode(vue.unref(ElementPlusIconsVue.WarningFilled))
|
|
37078
|
+
]),
|
|
37079
|
+
_: 1
|
|
37080
|
+
/* STABLE */
|
|
37081
|
+
})) : (vue.openBlock(), vue.createBlock(vue.unref(elementPlus.ElIcon), {
|
|
37082
|
+
key: 4,
|
|
37054
37083
|
class: "is-error"
|
|
37055
37084
|
}, {
|
|
37056
37085
|
default: vue.withCtx(() => [
|
|
@@ -39276,7 +39305,7 @@
|
|
|
39276
39305
|
for (const a of activeAdapters.keys()) a.abort();
|
|
39277
39306
|
activeAdapters.clear();
|
|
39278
39307
|
for (const m of Object.values(msgs.messages.value)) {
|
|
39279
|
-
if (m.status === "pending" || m.status === "streaming") msgs.edit(m.id, { status: "done" });
|
|
39308
|
+
if (m.status === "pending" || m.status === "streaming") msgs.edit(m.id, { status: "done", error: "" });
|
|
39280
39309
|
}
|
|
39281
39310
|
}
|
|
39282
39311
|
function resolveTarget(messageId) {
|
|
@@ -39485,11 +39514,14 @@
|
|
|
39485
39514
|
const dict = useLocaleDict(() => props.locale);
|
|
39486
39515
|
const emit = __emit;
|
|
39487
39516
|
const isUser = vue.computed(() => props.message.role === "user");
|
|
39517
|
+
const isInterrupted = vue.computed(() => props.message.status === "done" && props.message.error === "");
|
|
39518
|
+
const showHeader = vue.computed(() => isUser.value ? props.showUserName : props.showAssistantName);
|
|
39488
39519
|
const hasContentSeparator = vue.computed(
|
|
39489
39520
|
() => !!props.message.content || props.message.status === "done" || props.message.status === "error"
|
|
39490
39521
|
);
|
|
39491
39522
|
const thinkingStatus = vue.computed(() => {
|
|
39492
39523
|
if (props.message.status === "error") return "error";
|
|
39524
|
+
if (isInterrupted.value) return "interrupted";
|
|
39493
39525
|
if (props.message.status === "pending") return props.message.reasoning ? "thinking" : "start";
|
|
39494
39526
|
if (props.message.status === "streaming") return "thinking";
|
|
39495
39527
|
return "end";
|
|
@@ -39498,6 +39530,7 @@
|
|
|
39498
39530
|
const hasToolSteps = vue.computed(() => (props.message.toolSteps?.length ?? 0) > 0);
|
|
39499
39531
|
const toolThinkingStatus = vue.computed(() => {
|
|
39500
39532
|
if (props.message.status === "error") return "error";
|
|
39533
|
+
if (isInterrupted.value) return "interrupted";
|
|
39501
39534
|
if (props.message.status === "pending" || props.message.status === "streaming") return "thinking";
|
|
39502
39535
|
return "end";
|
|
39503
39536
|
});
|
|
@@ -39544,7 +39577,8 @@
|
|
|
39544
39577
|
const chainSummaryLabel = vue.computed(() => {
|
|
39545
39578
|
if (props.message.status !== "done") return void 0;
|
|
39546
39579
|
if (!toolStepCount.value) return void 0;
|
|
39547
|
-
|
|
39580
|
+
const tpl = isInterrupted.value ? dict.value.thinking.interruptedWithTools : dict.value.thinking.endWithTools;
|
|
39581
|
+
return tpl.split("{n}").join(String(toolStepCount.value));
|
|
39548
39582
|
});
|
|
39549
39583
|
const wasStreaming = vue.ref(false);
|
|
39550
39584
|
vue.watch(
|
|
@@ -39676,6 +39710,20 @@
|
|
|
39676
39710
|
const s = props.message.suggestions;
|
|
39677
39711
|
return s && s.length ? s : [];
|
|
39678
39712
|
});
|
|
39713
|
+
function isFollowupsReady() {
|
|
39714
|
+
const s = props.message.status;
|
|
39715
|
+
if (s === "pending" || s === "streaming") return false;
|
|
39716
|
+
if (s === "error") return true;
|
|
39717
|
+
const tw = contentTypewriterRef.value;
|
|
39718
|
+
return !(tw ? tw.isTyping : props.typing && wasStreaming.value && props.message.content);
|
|
39719
|
+
}
|
|
39720
|
+
const followupsVisible = vue.ref(isFollowupsReady());
|
|
39721
|
+
vue.watch(
|
|
39722
|
+
[() => props.message.status, () => contentTypewriterRef.value?.isTyping],
|
|
39723
|
+
() => {
|
|
39724
|
+
followupsVisible.value = isFollowupsReady();
|
|
39725
|
+
}
|
|
39726
|
+
);
|
|
39679
39727
|
const followupsEnabled = vue.computed(() => props.message.status === "done");
|
|
39680
39728
|
const followupTitle = vue.computed(() => dict.value.aiMessage.followupsTitle);
|
|
39681
39729
|
function onFollowup(item) {
|
|
@@ -39797,7 +39845,12 @@
|
|
|
39797
39845
|
__expose({ message: vue.computed(() => props.message), expandThoughtChain, collapseThoughtChain });
|
|
39798
39846
|
return (_ctx, _cache) => {
|
|
39799
39847
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
39800
|
-
class: vue.normalizeClass(["fv-msg", [`is-${__props.message.role}`, {
|
|
39848
|
+
class: vue.normalizeClass(["fv-msg", [`is-${__props.message.role}`, {
|
|
39849
|
+
"is-error": __props.message.status === "error",
|
|
39850
|
+
"is-user": isUser.value,
|
|
39851
|
+
// 无名称行且头像在场:主体首行与头像垂直居中(默认 flex-start 会偏上)
|
|
39852
|
+
"is-no-header": !showHeader.value && (isUser.value ? __props.showUserAvatar : __props.showAssistantAvatar)
|
|
39853
|
+
}]]),
|
|
39801
39854
|
"data-message-id": __props.message.id
|
|
39802
39855
|
}, [
|
|
39803
39856
|
vue.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) "),
|
|
@@ -39843,7 +39896,7 @@
|
|
|
39843
39896
|
)) : vue.createCommentVNode("v-if", true),
|
|
39844
39897
|
vue.createElementVNode("div", _hoisted_4$1, [
|
|
39845
39898
|
vue.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 "),
|
|
39846
|
-
|
|
39899
|
+
showHeader.value ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5, [
|
|
39847
39900
|
isUser.value ? vue.renderSlot(_ctx.$slots, "user-name", { message: __props.message }, () => [
|
|
39848
39901
|
vue.createTextVNode(
|
|
39849
39902
|
vue.toDisplayString(__props.userName || vue.unref(dict).aiMessage.defaultUserName),
|
|
@@ -40263,8 +40316,8 @@
|
|
|
40263
40316
|
/* TEXT */
|
|
40264
40317
|
)) : vue.createCommentVNode("v-if", true)
|
|
40265
40318
|
])) : vue.createCommentVNode("v-if", true),
|
|
40266
|
-
vue.createCommentVNode(" \u8FFD\u95EE\u5EFA\u8BAE:\u64CD\u4F5C\u533A(\u5DE5\u5177\u680F)\u4E0B\u65B9,\u5206\u9694\u7EBF + \
|
|
40267
|
-
followups.value.length ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
40319
|
+
vue.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 "),
|
|
40320
|
+
followups.value.length && followupsVisible.value ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
40268
40321
|
key: 7,
|
|
40269
40322
|
class: vue.normalizeClass(["fv-msg-followups", `is-${__props.followupStyle}`]),
|
|
40270
40323
|
role: "listbox",
|