g-ai-robot3 1.1.1 → 1.1.2

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/LICENSE CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2024 yuchen
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1
+ MIT License
2
+
3
+ Copyright (c) 2024 yuchen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
21
  SOFTWARE.
package/README.md CHANGED
@@ -77,95 +77,90 @@ export default defineConfig({
77
77
  });
78
78
  ```
79
79
 
80
- ## 默认内部配置
81
-
82
- 以下默认值会随 npm 包一起发布,且都可以通过 props 覆盖:
83
-
84
- | 项目 | 默认值 |
85
- | --- | --- |
86
- | `apiPrefix` | `"/api21216"` |
87
- | `cozeInfo.bot_id` | `"7473691358872584226"` |
88
- | `createConversationUrl` | `${apiPrefix}/chatGlm/createConversation` |
89
- | `qaServer` | `${apiPrefix}/chatGlm/searchTextNew` |
90
- | `interrupt` | `${apiPrefix}/chatGlm/cancelChat` |
91
- | `wakeupAudio` | `${apiPrefix}/asr/saveWakeUpAudio` |
92
- | `offer` | `${apiPrefix}/metahuman/offer` |
93
- | `humanaudio` | `${apiPrefix}/metahuman/humanaudio` |
94
- | `stop_audio` | `${apiPrefix}/metahuman/stop_audio` |
95
- | `textDriven` | `${apiPrefix}/intelligentVoice/tts` |
96
- | `audioWs` | `wss://model.keepsoft.net:39002/funasrWs` |
97
- | `voiceprintWs` | `wss://model.keepsoft.net:39002/speakerWs` |
98
- | `instructWs` | `wss://model.keepsoft.net:39002/commandWs` |
99
-
100
80
  ## 常用 Props
101
81
 
102
- ### 核心配置
103
-
104
- | 参数 | 类型 | 默认值 | 说明 |
105
- | --- | --- | --- | --- |
106
- | `cozeInfo` | `{ bot_id: string }` | 内置默认值 | 智能体配置,建议显式传入 |
107
- | `apiPrefix` | `string` | `"/api21216"` | API 基础前缀 |
108
- | `modelType` | `"local" \| "online"` | `"online"` | 模型类型 |
109
- | `showModelTypeToggle` | `boolean` | `false` | 是否显示本地/联网切换 |
110
- | `isDebug` | `boolean` | `false` | 是否打印调试信息 |
111
- | `mode` | `"audio" \| "text" \| "video"` | `"video"` | 交互模式 |
112
- | `driverMode` | `"workflow" \| "agent"` | `"workflow"` | AI 响应驱动模式,`workflow` 保持关键词工作流,`agent` 直接透传 AI JSON |
113
- | `data` | `Record<string, any>` | `{}` | `agent` 模式下随消息透传给后端的动态上下文 |
114
-
115
- ### 对话框与数字人
116
-
117
- | 参数 | 类型 | 默认值 | 说明 |
118
- | --- | --- | --- | --- |
119
- | `placementBottom` | `number` | `100` | 对话框底部偏移 |
120
- | `placementLeft` | `number` | `450` | 对话框左侧偏移 |
121
- | `canvasWidth` | `number` | `180` | 画布宽度 |
122
- | `canvasHeight` | `number` | `180` | 画布高度 |
123
- | `videoStyle` | `CSSProperties` | `{ width: "180px", opacity: "0", pointerEvents: "none" }` | 视频样式 |
124
- | `digitalStyle` | `CSSProperties` | `{ width: "180px", height: "180px" }` | 数字人样式 |
125
- | `canvasStyle` | `CSSProperties` | `{ width: "180px", height: "180px" }` | Canvas 样式 |
126
- | `bubbleStyle` | `CSSProperties` | `{ width: "30%", height: "30%" }` | 状态图标样式 |
127
-
128
- ### 气泡与展示型对话
129
-
130
- | 参数 | 类型 | 默认值 | 说明 |
131
- | --- | --- | --- | --- |
132
- | `showMsgBubble` | `boolean` | `true` | 是否显示悬浮气泡 |
133
- | `showMsgNumber` | `number` | `5` | 悬浮气泡展示条数 |
134
- | `bubbleTheme` | `"dark" \| "light" \| "custom"` | `"dark"` | 气泡主题 |
135
- | `useCustomDialog` | `boolean` | `false` | 是否使用自定义气泡样式 |
136
- | `BubbleWidth` | `CSSProperties` | `{ width: "220px", bottom: "85%" }` | 气泡容器样式 |
137
- | `BubbleBottom` | `number` | | 额外气泡底部偏移 |
138
- | `suspensionStyle` | `CSSProperties` | `{ maxHeight: "33vh" }` | 悬浮区容器样式 |
139
- | `initialQuestion` | `string` | | 外部传入的首条问题,仅展示不请求接口 |
140
- | `streamChunks` | `StreamChunk[]` | `[]` | 外部传入的单条流式消息块 |
141
- | `conversations` | `ConversationInput[]` | `[]` | 外部传入的多轮对话展示数据 |
142
-
143
- ### 接口覆盖
144
-
145
- | 参数 | 类型 | 默认值说明 |
146
- | --- | --- | --- |
147
- | `createConversationUrl` | `string` | 默认由 `apiPrefix` 拼接 |
148
- | `qaServer` | `string` | 默认由 `apiPrefix` 拼接 |
149
- | `interrupt` | `string` | 默认由 `apiPrefix` 拼接 |
150
- | `wakeupAudio` | `string` | 默认由 `apiPrefix` 拼接 |
151
- | `audioWs` | `string` | 默认内部 WS |
152
- | `voiceprintWs` | `string` | 默认内部 WS |
153
- | `offer` | `string` | 默认由 `apiPrefix` 拼接 |
154
- | `human` | `string` | 默认由 `apiPrefix` 拼接 |
155
- | `humanaudio` | `string` | 默认由 `apiPrefix` 拼接 |
156
- | `stop_audio` | `string` | 默认由 `apiPrefix` 拼接 |
157
- | `textDriven` | `string` | 默认由 `apiPrefix` 拼接 |
82
+ ### 必填参数(Required)
83
+
84
+ | 参数 | 说明 | 类型 | 默认值 | 注意事项 |
85
+ | ----------- | ------------ | -------- | ------------------- | ---------------------------------------------------------------------- |
86
+ | `cozeInfo` | 智能体配置 | `object` | `{ bot_id: "..." }` | `bot_id` 必须替换为实际的智能体 id |
87
+ | `apiPrefix` | API 基础路径 | `string` | `"/api21216"` | 必须配置为你的代理前缀(如 `/api21216`),可通过本地代理或环境变量覆盖 |
88
+
89
+ ### 基础配置
90
+
91
+ | 参数 | 说明 | 类型 | 默认值 |
92
+ | --------------------- | ------------------------------------------ | --------------------- | -------------------------------------- |
93
+ | `isDebug` | 是否开启调试模式(打印语音输出) | `boolean` | `false` |
94
+ | `dialogBoxTheme` | 对话框主题 | `string` | `"light"` |
95
+ | `suspensionStyle` | 对话框高度 | `CSSProperties` | `{ maxHeight: "33vh" }` |
96
+ | `showMsgBubble` | 是否显示消息气泡 | `boolean` | `true` |
97
+ | `isExhibitionPro` | 是否为数字展厅项目 | `boolean` | `false` |
98
+ | `isShowDialogIcon` | 是否显示对话框图标 | `boolean` | `false` |
99
+ | `stream` | 是否启用流式传输(已废弃) | `string` | `"True"` |
100
+ | `title` | 对话框标题 | `string` | `"GR水利大模型"` |
101
+ | `greet` | 欢迎语(文本对话框) | `string` | `"您好,我是GR水利大模型智能小助手..."` |
102
+ | `welcomeMessage` | 欢迎消息(气泡对话框) | `string` | `"您好,我是GR水利大模型智能小助手..."` |
103
+ | `waitTxt` | 等待提示文本 | `string` | `"贵仁科技AI正在生成回答"` |
104
+ | `systemName` | 系统标识 | `string` | `"g-ai-robot3"` |
105
+ | `placementBottom` | 对话框底部距离 | `number` | `100` |
106
+ | `placementLeft` | 对话框左侧距离 | `number` | `450` |
107
+ | `useAudio` | 是否启用音频功能 | `boolean` | `true` |
108
+ | `space` | 监听间隔(ms)(已废弃) | `number` | `3000` |
109
+ | `mode` | 交互模式(默认 `video`,其他已废弃) | `string` | `"video"` |
110
+ | `modelType` | 模型类型(`local` 或 `online`) | `string` | `"online"` |
111
+ | `showModelTypeToggle` | 显示模型类型切换开关 | `boolean` | `false` |
112
+ | `driverMode` | AI 结果驱动模式 | `string` | `"workflow"` |
113
+ | `data` | `agent` 模式下随消息透传给后端的动态上下文 | `Record<string, any>` | `{}` |
114
+
115
+ ### API 配置
116
+
117
+ | 参数 | 说明 | 类型 | 默认值 |
118
+ | ----------------------- | ----------------------------- | -------- | ------------------------------------------ |
119
+ | `apiPrefix` | API 基础路径(可自定义跨域) | `string` | `"/api21216"` |
120
+ | `createConversationUrl` | 创建会话接口 | `string` | `${apiPrefix}/chatGlm/createConversation` |
121
+ | `wakeupAudio` | 音频打标接口 | `string` | `${apiPrefix}/asr/saveWakeUpAudio` |
122
+ | `interrupt` | 中断请求接口 | `string` | `${apiPrefix}/chatGlm/cancelChat` |
123
+ | `qaServer` | 问答服务接口 | `string` | `${apiPrefix}/chatGlm/searchTextNew` |
124
+ | `offer` | 数字人形象接口 | `string` | `${apiPrefix}/metahuman/offer` |
125
+ | `humanaudio` | 数字人音频接口 | `string` | `${apiPrefix}/metahuman/humanaudio` |
126
+ | `stop_audio` | 停止音频接口 | `string` | `${apiPrefix}/metahuman/stop_audio` |
127
+ | `textDriven` | 文本驱动接口 | `string` | `${apiPrefix}/intelligentVoice/tts` |
128
+ | `audioWs` | 语音 WebSocket 服务 | `string` | `wss://model.keepsoft.net:39002/funasrWs` |
129
+ | `voiceprintWs` | 声纹识别 WebSocket 服务 | `string` | `wss://model.keepsoft.net:39002/speakerWs` |
130
+ | `instructWs` | 指令 WebSocket 服务(已废弃) | `string` | `wss://model.keepsoft.net:39002/commandWs` |
131
+
132
+ ### 数字人配置
133
+
134
+ | 参数 | 说明 | 类型 | 默认值 | 注意事项 |
135
+ | --------------------- | ------------ | --------------- | --------------------------------------------------------- | ---------------------------------------------------- |
136
+ | `videoStyle` | 视频样式 | `CSSProperties` | `{ width: "180px", opacity: "0", pointerEvents: "none" }` | 建议 `width` `canvasWidth` 一致 |
137
+ | `digitalStyle` | 数字人样式 | `CSSProperties` | `{ width: "180px", height: "180px" }` | 与 `canvasWidth` / `canvasHeight` 保持一致 |
138
+ | `canvasStyle` | 画布样式 | `CSSProperties` | `{ width: "180px", height: "180px" }` | 与 `canvasWidth` / `canvasHeight` 保持一致 |
139
+ | `bubbleStyle` | 气泡样式 | `CSSProperties` | `{ width: "30%", height: "30%" }` | - |
140
+ | `canvasWidth` | 画布宽度 | `number` | `180` | 建议与 `videoStyle.width`、`digitalStyle.width` 一致 |
141
+ | `canvasHeight` | 画布高度 | `number` | `180` | 建议与 `digitalStyle.height` 一致 |
142
+ | `canvasCartoonWidth` | 卡通形象宽度 | `number` | `200` | - |
143
+ | `canvasCartoonHeight` | 卡通形象高度 | `number` | `320` | - |
144
+
145
+ ### 消息气泡配置
146
+
147
+ | 参数 | 说明 | 类型 | 默认值 |
148
+ | ----------------- | -------------------------------------- | --------------------- | ----------------------------------- |
149
+ | `showMsgNumber` | 显示消息数量 | `number` | `5` |
150
+ | `bubbleTheme` | 气泡主题 | `string` | `"dark"` |
151
+ | `useCustomDialog` | 是否使用自定义对话框 | `boolean` | `false` |
152
+ | `BubbleWidth` | 气泡容器样式 | `CSSProperties` | `{ width: "220px", bottom: "85%" }` |
153
+ | `BubbleBottom` | 气泡底部距离 | `number` | `85` |
154
+ | `initialQuestion` | 外部传入的首条问题(仅展示不请求接口) | `string` | `-` |
155
+ | `streamChunks` | 外部传入的单条流式消息块 | `StreamChunk[]` | `[]` |
156
+ | `conversations` | 外部传入的多轮对话展示数据 | `ConversationInput[]` | `[]` |
158
157
 
159
158
  ## 类型导出
160
159
 
161
160
  本包会导出常用类型,内部项目可以直接引用:
162
161
 
163
162
  ```ts
164
- import type {
165
- ConversationInput,
166
- IndexProps,
167
- StreamChunk,
168
- } from "g-ai-robot3";
163
+ import type { ConversationInput, IndexProps, StreamChunk } from "g-ai-robot3";
169
164
  ```
170
165
 
171
166
  ## 工作流事件示例
@@ -193,49 +188,49 @@ const eventFun = [
193
188
 
194
189
  `driverMode` 默认为 `workflow`,老项目不需要改动。切换到 `agent` 后:
195
190
 
196
- - 忽略 `eventFun`
197
- - 不做关键词匹配
198
- - 每次 AI 返回 `data` 时直接触发 `agent-response`
199
- - 由业务层自行决定如何处理返回 JSON
200
- - 发送请求时 `searchText` 会升级为 `JSON.stringify({ msg, data })` 后的字符串;`msg` 为用户输入或补问组装文本,`data` 为外部传入的最新 `data` prop
201
-
202
- ```vue
203
- <script setup lang="ts">
204
- import { ref } from "vue";
205
-
206
- const agentContext = ref({
207
- anything: "from parent",
208
- });
209
-
210
- const handleAgentResponse = (params: any) => {
211
- console.log("agent response", params);
212
- };
191
+ - 忽略 `eventFun`
192
+ - 不做关键词匹配
193
+ - 每次 AI 返回 `data` 时直接触发 `agent-response`
194
+ - 由业务层自行决定如何处理返回 JSON
195
+ - 发送请求时 `searchText` 会升级为 `JSON.stringify({ msg, data })` 后的字符串;`msg` 为用户输入或补问组装文本,`data` 为外部传入的最新 `data` prop
196
+
197
+ ```vue
198
+ <script setup lang="ts">
199
+ import { ref } from "vue";
200
+
201
+ const agentContext = ref({
202
+ anything: "from parent",
203
+ });
204
+
205
+ const handleAgentResponse = (params: any) => {
206
+ console.log("agent response", params);
207
+ };
213
208
  </script>
214
209
 
215
210
  <template>
216
- <GAiRobot3
217
- mode="video"
218
- driverMode="agent"
219
- :data="agentContext"
220
- @agent-response="handleAgentResponse"
221
- />
222
- </template>
211
+ <GAiRobot3
212
+ mode="video"
213
+ driverMode="agent"
214
+ :data="agentContext"
215
+ @agent-response="handleAgentResponse"
216
+ />
217
+ </template>
223
218
  ```
224
219
 
225
220
  业务侧可以直接拿到类似下面的结构:
226
221
 
227
222
  ```ts
228
- function handleAgentResponse(params: any) {
229
- // {
230
- // reply,
231
- // targetState,
232
- // commands
233
- // }
234
- applyAgentResponse(params);
235
- }
236
- ```
237
-
238
- `workflow` 模式继续保持旧请求结构,不启用 `{ msg, data }` 和补问组装,老项目不需要调整后端接口。
223
+ function handleAgentResponse(params: any) {
224
+ // {
225
+ // reply,
226
+ // targetState,
227
+ // commands
228
+ // }
229
+ applyAgentResponse(params);
230
+ }
231
+ ```
232
+
233
+ `workflow` 模式继续保持旧请求结构,不启用 `{ msg, data }` 和补问组装,老项目不需要调整后端接口。
239
234
 
240
235
  ## 注意事项
241
236
 
@@ -73196,7 +73196,7 @@ const OG = { class: "robot" }, EG = {
73196
73196
  }, 8, ["onAfterLeave"])
73197
73197
  ], 36));
73198
73198
  }
73199
- }), jG = /* @__PURE__ */ Nu(kG, [["__scopeId", "data-v-0aaa484d"]]), Py = jG;
73199
+ }), jG = /* @__PURE__ */ Nu(kG, [["__scopeId", "data-v-4b745e01"]]), Py = jG;
73200
73200
  Py.install = (e) => {
73201
73201
  e.component("GAiRobot3", Py);
73202
73202
  };
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- .digital-human[data-v-b9ab6c75]{z-index:0;position:relative;display:flex;align-items:center;justify-content:center}.digital-human #video[data-v-b9ab6c75]{position:absolute;left:0;top:0}.digital-human #output-canvas[data-v-b9ab6c75]{opacity:1;transition:opacity 6s ease;width:300px;height:150px}.digital-human #output-canvas.fade-out[data-v-b9ab6c75]{opacity:0;pointer-events:none}.digital-human .xiaogVideo[data-v-b9ab6c75],.digital-human img[data-v-b9ab6c75]{position:absolute;left:0;top:0}.digital-human .statusImg[data-v-b9ab6c75]{z-index:9998;position:absolute;width:30%;height:30%;top:0%;left:0%;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important}.digital-human .QstatusImg[data-v-b9ab6c75]{width:29%!important;height:20%!important}[data-v-cafadabb] .ant-bubble-content{pointer-events:auto}[data-v-cafadabb] .table-container{width:100%;max-width:100%;overflow-x:auto;touch-action:pan-x;-webkit-overflow-scrolling:touch;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(92.03deg,#77f1ff8c -2.18%,#edfaffd9 48.06%,#5ba8ff73 107.05%)}[data-v-cafadabb] .table-container .markdown-table table{min-width:max-content}[data-v-cafadabb] .markdown-table .ant-table-tbody>tr>td{padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background-color:#fff!important}[data-v-cafadabb] .markdown-table .ant-table-thead>tr>th{background-color:#f5f5f5!important;font-weight:700;padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.suspension-content[data-v-cafadabb]{overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:72%;bottom:85%;width:220px;display:flex;flex-direction:column-reverse}.suspension-content[data-v-cafadabb]::-webkit-scrollbar{display:none}.useCustom-dialog[data-v-cafadabb]{pointer-events:none;z-index:1}.useCustom-dialog .bubble-item[data-v-cafadabb]{margin-bottom:6px}.useCustom-dialog p[data-v-cafadabb]{margin:0!important;padding:0}.useCustom-dialog[data-v-cafadabb] .ant-bubble .ant-bubble-content-filled,.useCustom-dialog[data-v-cafadabb] .ant-bubble .ant-bubble-content-outlined{background:#062e404d;border:1px solid rgba(220,237,255,.3);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:12px;color:#fff}.useCustom-dialog[data-v-cafadabb] .ant-bubble-content.ant-bubble-content-outlined p,.useCustom-dialog[data-v-cafadabb] .ant-bubble-content.ant-bubble-content-filled p{margin:0!important;padding:0}.suspension-msg-bubble[data-v-cafadabb]{pointer-events:none;z-index:1}.suspension-msg-bubble .bubble-item[data-v-cafadabb]{margin-bottom:5px}.suspension-msg-bubble p[data-v-cafadabb]{margin:0!important;padding:0}.suspension-msg-bubble[data-v-cafadabb] .ant-bubble .ant-bubble-content-filled{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:linear-gradient(92.03deg,#77f1ff40 -2.18%,#edfaff40 48.06%,#5ba8ff40 107.05%);border:1px solid rgba(255,255,255,.6);border-radius:12px}.suspension-msg-bubble[data-v-cafadabb] .ant-bubble .ant-bubble-content-outlined{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffff4d;border:1px solid rgba(255,255,255,.6);border-radius:12px}.suspension-msg-bubble[data-v-cafadabb] .ant-bubble-content.ant-bubble-content-filled p,.suspension-msg-bubble[data-v-cafadabb] .ant-bubble-content.ant-bubble-content-outlined p{margin:0!important;padding:0}.bubble-move[data-v-cafadabb],.bubble-enter-active[data-v-cafadabb],.bubble-leave-active[data-v-cafadabb]{transition:all .5s ease}.bubble-enter-from[data-v-cafadabb],.bubble-leave-to[data-v-cafadabb]{opacity:0;transform:translate(30px)}.bubble-leave-active[data-v-cafadabb]{position:absolute}.ellipsisText{display:inline;letter-spacing:2px}.ellipsisText:after{content:"···";animation:loading-animation 1s infinite linear}@keyframes loading-animation{0%{content:"·"}50%{content:"··"}to{content:"···"}}.qa-extra-pre{background:#f4f4f5;padding:6px;border-radius:6px;overflow:auto;white-space:pre-wrap;margin-top:4px}.qa-knowledge-item summary{display:flex;align-items:center;color:#666;cursor:pointer}.qa-knowledge-item summary::-webkit-details-marker{display:none}.qa-knowledge-item summary::marker{content:""}.qa-knowledge-item .qa-arrow{color:#999;font-size:16px;margin-right:6px;transition:transform .2s ease;display:inline-block}.qa-knowledge-item:not([open]) .qa-arrow{transform:rotate(-90deg)}.qa-knowledge-number{color:#666;margin-right:6px}.talk_main[data-v-0444bafe]{position:absolute;width:400px;z-index:10000;height:600px;resize:both;overflow:auto;min-width:360px;min-height:320px;max-width:80vw;max-height:90vh;background:#f5f6f766;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.55);box-shadow:0 8px 32px #0476ed1f;border-radius:8px}.talk_main header[data-v-0444bafe]{height:44px;background:linear-gradient(to right,#ebf1ff66,#e5faf866,#f2ebfe66);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.5);display:flex;padding:0 16px;align-items:center;justify-content:space-between;cursor:move;color:#333}.talk_main header span[data-v-0444bafe]{font-size:16px;font-weight:700;color:#333}.talk_main header span.close[data-v-0444bafe]{color:#666;font-size:18px;line-height:1;display:flex;align-items:center;cursor:pointer}.talk_main header span.close[data-v-0444bafe]:hover{color:#333}.talk_main header span.close .anticon.disabled[data-v-0444bafe]{cursor:not-allowed;opacity:.4;pointer-events:none}.talk_main .clickable-image[data-v-0444bafe]{cursor:pointer;width:80px;height:auto;border-radius:5px;transition:transform .2s}.talk_main .clickable-image[data-v-0444bafe]:hover{transform:scale(1.1)}.talk_main .image-viewer-overlay[data-v-0444bafe]{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:9999}.talk_main .image-viewer[data-v-0444bafe]{position:relative}.talk_main .large-image[data-v-0444bafe]{max-width:90%;max-height:90%;border-radius:8px}.talk_main .qa_body[data-v-0444bafe]{list-style:none;padding:16px;box-sizing:border-box;margin:0;width:100%;height:calc(100% - 116px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#c1c1c1 #e1e1e1}.talk_main .qa_body[data-v-0444bafe]::-webkit-scrollbar{width:8px;background-color:#f9f9f9}.talk_main .qa_body[data-v-0444bafe]::-webkit-scrollbar-track{background:#e1e1e1;border-radius:10px}.talk_main .qa_body[data-v-0444bafe]::-webkit-scrollbar-thumb{background-color:#c1c1c1;border-radius:10px}.talk_main .qa_body li[data-v-0444bafe]{display:flex;margin-bottom:24px;justify-content:flex-end;gap:10px;min-width:0}.talk_main .qa_body li>div[data-v-0444bafe]:not(.is_icon){min-width:0;max-width:100%}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-content.ant-bubble-content-filled{max-width:100%;box-sizing:border-box;box-shadow:0 4px 20px #0476ed29;border:1px solid;border-image-source:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.5) 104.31%);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(92.03deg,#77f1ff8c -2.18%,#edfaffd9 48.06%,#5ba8ff73 107.05%)}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-content.ant-bubble-content-filled p{margin:0!important;padding:0}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-content.ant-bubble-content-outlined{max-width:100%;box-sizing:border-box}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-content.ant-bubble-content-outlined p{margin:0!important;padding:0}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-wrapper,.talk_main .qa_body li[data-v-0444bafe] .ant-bubble{max-width:100%}.talk_main .qa_body li[data-v-0444bafe] .table-container{width:100%;max-width:100%;min-width:0;overflow-x:auto;touch-action:pan-x;-webkit-overflow-scrolling:touch;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(92.03deg,#77f1ff8c -2.18%,#edfaffd9 48.06%,#5ba8ff73 107.05%)}.talk_main .qa_body li[data-v-0444bafe] .table-container .markdown-table table{min-width:max-content}.talk_main .qa_body li[data-v-0444bafe] .markdown-table .ant-table-tbody>tr>td{padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background-color:#fff!important}.talk_main .qa_body li[data-v-0444bafe] .markdown-table .ant-table-thead>tr>th{background-color:#f5f5f5!important;font-weight:700;padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.talk_main .qa_body li .copyBtn[data-v-0444bafe]{font-size:18px;cursor:pointer;margin-right:10px}.talk_main .qa_body li .copyBtn[data-v-0444bafe]:hover{color:#1890ff;transform:scale(1.1)}.talk_main .qa_body li .is_icon[data-v-0444bafe]{width:30px;height:30px;border-radius:50%;color:#fff;display:flex}.talk_main .qa_body li.is_ai[data-v-0444bafe]{justify-content:flex-start;overflow:hidden}.talk_main .qa_body li.is_ai .text_main[data-v-0444bafe]{box-shadow:0 4px 20px #0476ed29;border:1px solid;border-image-source:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.5) 104.31%);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(92.03deg,#77f1ff8c -2.18%,#edfaffd9 48.06%,#5ba8ff73 107.05%)}.talk_main .qa_body li.is_ai .text_main>.value[data-v-0444bafe]{white-space:pre-wrap}.talk_main .qa_body li .text_main[data-v-0444bafe]{padding:10px;max-width:calc(100% - 100px);border:1px solid;margin:0 8px;border-image-source:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,.5) 100%);box-shadow:0 4px 20px #0476ed29;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(90.81deg,#f4fcffd9 1.75%,#ffffffe6 32.33%,#eef6ffd9 102.86%);border-radius:6px}.talk_main .qa_body li .text_main>.value[data-v-0444bafe]{display:flex;align-items:center;overflow-wrap:break-word;word-wrap:break-word;font-size:14px;font-weight:400}.talk_main .qa_body li .text_main .btn i[data-v-0444bafe]{font-size:14px;font-weight:400;color:#037aff;margin-right:10px;cursor:pointer;text-decoration:underline}.talk_main .qa_body li .text_main .btn i.open[data-v-0444bafe]{filter:hue-rotate(180deg);animation:opacityCss 2s linear infinite}.talk_main #playChart[data-v-0444bafe]{width:calc(100% - 32px);height:40px;left:16px;display:inline-block;bottom:100px;position:absolute;visibility:hidden;border:1px solid #ccc;vertical-align:bottom}.talk_main #playChart.show[data-v-0444bafe]{visibility:visible}.talk_main #playChart.hiddle[data-v-0444bafe]{visibility:hidden}.talk_main .qa_input[data-v-0444bafe]{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;position:absolute;bottom:0;left:0;right:0;box-sizing:border-box;background:linear-gradient(to right,#ebf1ff66,#e5faf866,#f2ebfe66);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid rgba(255,255,255,.5)}.talk_main .qa_input textarea[data-v-0444bafe]{width:100%;max-height:68px;resize:none;background-color:#fff6;border:1px solid rgba(220,223,230,.8);color:#606266;padding:6px}.talk_main .qa_input textarea[data-v-0444bafe]:focus{outline:none;border-color:#409effcc;background-color:#ffffffb3}.talk_main .qa_input .clear[data-v-0444bafe]{margin-right:5px}.talk_main .qa_input .clear img[data-v-0444bafe]{height:30px;width:30px;cursor:pointer}.talk_main .qa_input .clear img.disabled[data-v-0444bafe]{cursor:not-allowed}.talk_main .qa_input .is_icon[data-v-0444bafe]{width:30px}.talk_main .qa_input .is_icon p[data-v-0444bafe]{display:flex;align-items:center;justify-content:flex-end;margin:6px 0}.talk_main .qa_input .is_icon p[data-v-0444bafe]:nth-of-type(1){position:relative}.talk_main .qa_input .is_icon p i[data-v-0444bafe],.talk_main .qa_input .is_icon p .anticon[data-v-0444bafe]{font-size:20px;color:#606266}.talk_main .qa_input .is_icon p img[data-v-0444bafe]{width:20px;height:20px;cursor:pointer}.talk_main .qa_input .is_icon p img.close[data-v-0444bafe]{filter:hue-rotate(180deg);animation:opacityCss 2s linear infinite}.talk_main .qa_input .is_icon p.send img.disabled[data-v-0444bafe]{cursor:not-allowed}.talk_main .qa_input .is_icon p i[data-v-0444bafe]{cursor:pointer}.qa-extra-container[data-v-0444bafe]{display:block;width:100%}.qa-extra-header[data-v-0444bafe]{display:flex;align-items:center;gap:8px}.qa-extra-empty[data-v-0444bafe]{color:#999;font-size:12px;margin-left:4px}.qa-extra-body[data-v-0444bafe]{margin-top:6px}.qa-section[data-v-0444bafe]{padding-top:6px}.qa-section+.qa-section[data-v-0444bafe]{margin-top:6px}.qa-section summary[data-v-0444bafe]{display:flex;justify-content:space-between;align-items:center;font-weight:600;color:#666;cursor:pointer}.qa-section summary[data-v-0444bafe]::-webkit-details-marker{display:none}.qa-section summary[data-v-0444bafe]::marker{content:""}.qa-section pre[data-v-0444bafe]{background:#f7f7f7;padding:6px;border-radius:6px;overflow:auto;white-space:pre-wrap;margin-top:4px}.qa-status-success[data-v-0444bafe]{color:#13ce66}.qa-status-running[data-v-0444bafe]{color:#666}.stop-response-btn[data-v-0444bafe]{position:absolute;top:-15px;right:50%;transform:translate(50%);border:1px solid #dddddd;border-radius:8px;padding:4px 8px;font-size:14px;color:#333;background:#fff;cursor:pointer;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important;white-space:nowrap}.stop-response-btn[data-v-0444bafe]:hover{background:#f5f5f5}.prompts-rise-enter-active[data-v-0444bafe]{transition:opacity .4s ease,transform .4s cubic-bezier(.16,1,.3,1)}.prompts-rise-enter-from[data-v-0444bafe]{opacity:0;transform:translateY(14px)}.prompts-rise-enter-to[data-v-0444bafe]{opacity:1;transform:translateY(0)}.model-type-toggle{position:absolute;top:34px;left:170px}.model-type-toggle .ant-switch-inner{white-space:nowrap;color:#fff;font-size:12px}.model-type-toggle.ant-switch{background-color:#13ce66}.model-type-toggle.ant-switch-checked{background-color:#409eff}.model-type-toggle.ant-switch:hover{background-color:#13ce66}.model-type-toggle.ant-switch-checked:hover{background-color:#409eff}#g-ai-robot[data-v-0aaa484d]{position:fixed}#g-ai-robot .robot[data-v-0aaa484d]{cursor:pointer;z-index:9990;touch-action:none}#g-ai-robot .robot .digital-human-wrap[data-v-0aaa484d]{position:relative}#g-ai-robot .robot .digital-human-wrap .dialogImg[data-v-0aaa484d]{z-index:9998;position:absolute;width:15%;height:auto;top:18%;left:73%;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important}#g-ai-robot .robot .digital-human-wrap .disabled[data-v-0aaa484d]{cursor:not-allowed}#g-ai-robot .robot .digital-human-wrap .statusImg[data-v-0aaa484d]{z-index:9998;position:absolute;width:30%;height:30%}#g-ai-robot .robot .digital-human-wrap .QstatusImg[data-v-0aaa484d]{width:29%!important;height:20%!important}#g-ai-robot .robot.disabled[data-v-0aaa484d]{cursor:not-allowed}#g-ai-robot .robot img[data-v-0aaa484d]{height:100px;width:100px}#g-ai-robot .robot .table-container[data-v-0aaa484d]{touch-action:pan-x}@keyframes rotateCss-0aaa484d{0%{transform:rotate(0)}25%{transform:rotate(90deg)}50%{transform:rotate(180deg)}70%{transform:rotate(270deg)}to{transform:rotate(360deg)}}@keyframes dialog-dock-in-0aaa484d{0%{opacity:0;transform:scale(.15)}50%{opacity:1}75%{transform:scale(1.03)}to{opacity:1;transform:scale(1)}}@keyframes dialog-dock-out-0aaa484d{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.15)}}.dialog-dock-enter-active[data-v-0aaa484d]{animation:dialog-dock-in-0aaa484d .38s cubic-bezier(.16,1,.3,1) forwards;transform-origin:bottom left}.dialog-dock-leave-active[data-v-0aaa484d]{animation:dialog-dock-out-0aaa484d .26s cubic-bezier(.55,0,1,.45) forwards;transform-origin:bottom left}
1
+ .digital-human[data-v-b9ab6c75]{z-index:0;position:relative;display:flex;align-items:center;justify-content:center}.digital-human #video[data-v-b9ab6c75]{position:absolute;left:0;top:0}.digital-human #output-canvas[data-v-b9ab6c75]{opacity:1;transition:opacity 6s ease;width:300px;height:150px}.digital-human #output-canvas.fade-out[data-v-b9ab6c75]{opacity:0;pointer-events:none}.digital-human .xiaogVideo[data-v-b9ab6c75],.digital-human img[data-v-b9ab6c75]{position:absolute;left:0;top:0}.digital-human .statusImg[data-v-b9ab6c75]{z-index:9998;position:absolute;width:30%;height:30%;top:0%;left:0%;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important}.digital-human .QstatusImg[data-v-b9ab6c75]{width:29%!important;height:20%!important}[data-v-cafadabb] .ant-bubble-content{pointer-events:auto}[data-v-cafadabb] .table-container{width:100%;max-width:100%;overflow-x:auto;touch-action:pan-x;-webkit-overflow-scrolling:touch;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(92.03deg,#77f1ff8c -2.18%,#edfaffd9 48.06%,#5ba8ff73 107.05%)}[data-v-cafadabb] .table-container .markdown-table table{min-width:max-content}[data-v-cafadabb] .markdown-table .ant-table-tbody>tr>td{padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background-color:#fff!important}[data-v-cafadabb] .markdown-table .ant-table-thead>tr>th{background-color:#f5f5f5!important;font-weight:700;padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.suspension-content[data-v-cafadabb]{overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none;position:absolute;left:72%;bottom:85%;width:220px;display:flex;flex-direction:column-reverse}.suspension-content[data-v-cafadabb]::-webkit-scrollbar{display:none}.useCustom-dialog[data-v-cafadabb]{pointer-events:none;z-index:1}.useCustom-dialog .bubble-item[data-v-cafadabb]{margin-bottom:6px}.useCustom-dialog p[data-v-cafadabb]{margin:0!important;padding:0}.useCustom-dialog[data-v-cafadabb] .ant-bubble .ant-bubble-content-filled,.useCustom-dialog[data-v-cafadabb] .ant-bubble .ant-bubble-content-outlined{background:#062e404d;border:1px solid rgba(220,237,255,.3);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);border-radius:12px;color:#fff}.useCustom-dialog[data-v-cafadabb] .ant-bubble-content.ant-bubble-content-outlined p,.useCustom-dialog[data-v-cafadabb] .ant-bubble-content.ant-bubble-content-filled p{margin:0!important;padding:0}.suspension-msg-bubble[data-v-cafadabb]{pointer-events:none;z-index:1}.suspension-msg-bubble .bubble-item[data-v-cafadabb]{margin-bottom:5px}.suspension-msg-bubble p[data-v-cafadabb]{margin:0!important;padding:0}.suspension-msg-bubble[data-v-cafadabb] .ant-bubble .ant-bubble-content-filled{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background:linear-gradient(92.03deg,#77f1ff40 -2.18%,#edfaff40 48.06%,#5ba8ff40 107.05%);border:1px solid rgba(255,255,255,.6);border-radius:12px}.suspension-msg-bubble[data-v-cafadabb] .ant-bubble .ant-bubble-content-outlined{-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:#ffffff4d;border:1px solid rgba(255,255,255,.6);border-radius:12px}.suspension-msg-bubble[data-v-cafadabb] .ant-bubble-content.ant-bubble-content-filled p,.suspension-msg-bubble[data-v-cafadabb] .ant-bubble-content.ant-bubble-content-outlined p{margin:0!important;padding:0}.bubble-move[data-v-cafadabb],.bubble-enter-active[data-v-cafadabb],.bubble-leave-active[data-v-cafadabb]{transition:all .5s ease}.bubble-enter-from[data-v-cafadabb],.bubble-leave-to[data-v-cafadabb]{opacity:0;transform:translate(30px)}.bubble-leave-active[data-v-cafadabb]{position:absolute}.ellipsisText{display:inline;letter-spacing:2px}.ellipsisText:after{content:"···";animation:loading-animation 1s infinite linear}@keyframes loading-animation{0%{content:"·"}50%{content:"··"}to{content:"···"}}.qa-extra-pre{background:#f4f4f5;padding:6px;border-radius:6px;overflow:auto;white-space:pre-wrap;margin-top:4px}.qa-knowledge-item summary{display:flex;align-items:center;color:#666;cursor:pointer}.qa-knowledge-item summary::-webkit-details-marker{display:none}.qa-knowledge-item summary::marker{content:""}.qa-knowledge-item .qa-arrow{color:#999;font-size:16px;margin-right:6px;transition:transform .2s ease;display:inline-block}.qa-knowledge-item:not([open]) .qa-arrow{transform:rotate(-90deg)}.qa-knowledge-number{color:#666;margin-right:6px}.talk_main[data-v-0444bafe]{position:absolute;width:400px;z-index:10000;height:600px;resize:both;overflow:auto;min-width:360px;min-height:320px;max-width:80vw;max-height:90vh;background:#f5f6f766;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border:1px solid rgba(255,255,255,.55);box-shadow:0 8px 32px #0476ed1f;border-radius:8px}.talk_main header[data-v-0444bafe]{height:44px;background:linear-gradient(to right,#ebf1ff66,#e5faf866,#f2ebfe66);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.5);display:flex;padding:0 16px;align-items:center;justify-content:space-between;cursor:move;color:#333}.talk_main header span[data-v-0444bafe]{font-size:16px;font-weight:700;color:#333}.talk_main header span.close[data-v-0444bafe]{color:#666;font-size:18px;line-height:1;display:flex;align-items:center;cursor:pointer}.talk_main header span.close[data-v-0444bafe]:hover{color:#333}.talk_main header span.close .anticon.disabled[data-v-0444bafe]{cursor:not-allowed;opacity:.4;pointer-events:none}.talk_main .clickable-image[data-v-0444bafe]{cursor:pointer;width:80px;height:auto;border-radius:5px;transition:transform .2s}.talk_main .clickable-image[data-v-0444bafe]:hover{transform:scale(1.1)}.talk_main .image-viewer-overlay[data-v-0444bafe]{position:fixed;top:0;left:0;width:100%;height:100%;background:#000000b3;display:flex;justify-content:center;align-items:center;z-index:9999}.talk_main .image-viewer[data-v-0444bafe]{position:relative}.talk_main .large-image[data-v-0444bafe]{max-width:90%;max-height:90%;border-radius:8px}.talk_main .qa_body[data-v-0444bafe]{list-style:none;padding:16px;box-sizing:border-box;margin:0;width:100%;height:calc(100% - 116px);overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#c1c1c1 #e1e1e1}.talk_main .qa_body[data-v-0444bafe]::-webkit-scrollbar{width:8px;background-color:#f9f9f9}.talk_main .qa_body[data-v-0444bafe]::-webkit-scrollbar-track{background:#e1e1e1;border-radius:10px}.talk_main .qa_body[data-v-0444bafe]::-webkit-scrollbar-thumb{background-color:#c1c1c1;border-radius:10px}.talk_main .qa_body li[data-v-0444bafe]{display:flex;margin-bottom:24px;justify-content:flex-end;gap:10px;min-width:0}.talk_main .qa_body li>div[data-v-0444bafe]:not(.is_icon){min-width:0;max-width:100%}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-content.ant-bubble-content-filled{max-width:100%;box-sizing:border-box;box-shadow:0 4px 20px #0476ed29;border:1px solid;border-image-source:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.5) 104.31%);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(92.03deg,#77f1ff8c -2.18%,#edfaffd9 48.06%,#5ba8ff73 107.05%)}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-content.ant-bubble-content-filled p{margin:0!important;padding:0}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-content.ant-bubble-content-outlined{max-width:100%;box-sizing:border-box}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-content.ant-bubble-content-outlined p{margin:0!important;padding:0}.talk_main .qa_body li[data-v-0444bafe] .ant-bubble-wrapper,.talk_main .qa_body li[data-v-0444bafe] .ant-bubble{max-width:100%}.talk_main .qa_body li[data-v-0444bafe] .table-container{width:100%;max-width:100%;min-width:0;overflow-x:auto;touch-action:pan-x;-webkit-overflow-scrolling:touch;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(92.03deg,#77f1ff8c -2.18%,#edfaffd9 48.06%,#5ba8ff73 107.05%)}.talk_main .qa_body li[data-v-0444bafe] .table-container .markdown-table table{min-width:max-content}.talk_main .qa_body li[data-v-0444bafe] .markdown-table .ant-table-tbody>tr>td{padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;background-color:#fff!important}.talk_main .qa_body li[data-v-0444bafe] .markdown-table .ant-table-thead>tr>th{background-color:#f5f5f5!important;font-weight:700;padding:8px 16px;height:40px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.talk_main .qa_body li .copyBtn[data-v-0444bafe]{font-size:18px;cursor:pointer;margin-right:10px}.talk_main .qa_body li .copyBtn[data-v-0444bafe]:hover{color:#1890ff;transform:scale(1.1)}.talk_main .qa_body li .is_icon[data-v-0444bafe]{width:30px;height:30px;border-radius:50%;color:#fff;display:flex}.talk_main .qa_body li.is_ai[data-v-0444bafe]{justify-content:flex-start;overflow:hidden}.talk_main .qa_body li.is_ai .text_main[data-v-0444bafe]{box-shadow:0 4px 20px #0476ed29;border:1px solid;border-image-source:linear-gradient(180deg,#ffffff 0%,rgba(255,255,255,.5) 104.31%);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(92.03deg,#77f1ff8c -2.18%,#edfaffd9 48.06%,#5ba8ff73 107.05%)}.talk_main .qa_body li.is_ai .text_main>.value[data-v-0444bafe]{white-space:pre-wrap}.talk_main .qa_body li .text_main[data-v-0444bafe]{padding:10px;max-width:calc(100% - 100px);border:1px solid;margin:0 8px;border-image-source:linear-gradient(90deg,#ffffff 0%,rgba(255,255,255,.5) 100%);box-shadow:0 4px 20px #0476ed29;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);background:linear-gradient(90.81deg,#f4fcffd9 1.75%,#ffffffe6 32.33%,#eef6ffd9 102.86%);border-radius:6px}.talk_main .qa_body li .text_main>.value[data-v-0444bafe]{display:flex;align-items:center;overflow-wrap:break-word;word-wrap:break-word;font-size:14px;font-weight:400}.talk_main .qa_body li .text_main .btn i[data-v-0444bafe]{font-size:14px;font-weight:400;color:#037aff;margin-right:10px;cursor:pointer;text-decoration:underline}.talk_main .qa_body li .text_main .btn i.open[data-v-0444bafe]{filter:hue-rotate(180deg);animation:opacityCss 2s linear infinite}.talk_main #playChart[data-v-0444bafe]{width:calc(100% - 32px);height:40px;left:16px;display:inline-block;bottom:100px;position:absolute;visibility:hidden;border:1px solid #ccc;vertical-align:bottom}.talk_main #playChart.show[data-v-0444bafe]{visibility:visible}.talk_main #playChart.hiddle[data-v-0444bafe]{visibility:hidden}.talk_main .qa_input[data-v-0444bafe]{padding:10px 16px;display:flex;align-items:center;justify-content:space-between;position:absolute;bottom:0;left:0;right:0;box-sizing:border-box;background:linear-gradient(to right,#ebf1ff66,#e5faf866,#f2ebfe66);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-top:1px solid rgba(255,255,255,.5)}.talk_main .qa_input textarea[data-v-0444bafe]{width:100%;max-height:68px;resize:none;background-color:#fff6;border:1px solid rgba(220,223,230,.8);color:#606266;padding:6px}.talk_main .qa_input textarea[data-v-0444bafe]:focus{outline:none;border-color:#409effcc;background-color:#ffffffb3}.talk_main .qa_input .clear[data-v-0444bafe]{margin-right:5px}.talk_main .qa_input .clear img[data-v-0444bafe]{height:30px;width:30px;cursor:pointer}.talk_main .qa_input .clear img.disabled[data-v-0444bafe]{cursor:not-allowed}.talk_main .qa_input .is_icon[data-v-0444bafe]{width:30px}.talk_main .qa_input .is_icon p[data-v-0444bafe]{display:flex;align-items:center;justify-content:flex-end;margin:6px 0}.talk_main .qa_input .is_icon p[data-v-0444bafe]:nth-of-type(1){position:relative}.talk_main .qa_input .is_icon p i[data-v-0444bafe],.talk_main .qa_input .is_icon p .anticon[data-v-0444bafe]{font-size:20px;color:#606266}.talk_main .qa_input .is_icon p img[data-v-0444bafe]{width:20px;height:20px;cursor:pointer}.talk_main .qa_input .is_icon p img.close[data-v-0444bafe]{filter:hue-rotate(180deg);animation:opacityCss 2s linear infinite}.talk_main .qa_input .is_icon p.send img.disabled[data-v-0444bafe]{cursor:not-allowed}.talk_main .qa_input .is_icon p i[data-v-0444bafe]{cursor:pointer}.qa-extra-container[data-v-0444bafe]{display:block;width:100%}.qa-extra-header[data-v-0444bafe]{display:flex;align-items:center;gap:8px}.qa-extra-empty[data-v-0444bafe]{color:#999;font-size:12px;margin-left:4px}.qa-extra-body[data-v-0444bafe]{margin-top:6px}.qa-section[data-v-0444bafe]{padding-top:6px}.qa-section+.qa-section[data-v-0444bafe]{margin-top:6px}.qa-section summary[data-v-0444bafe]{display:flex;justify-content:space-between;align-items:center;font-weight:600;color:#666;cursor:pointer}.qa-section summary[data-v-0444bafe]::-webkit-details-marker{display:none}.qa-section summary[data-v-0444bafe]::marker{content:""}.qa-section pre[data-v-0444bafe]{background:#f7f7f7;padding:6px;border-radius:6px;overflow:auto;white-space:pre-wrap;margin-top:4px}.qa-status-success[data-v-0444bafe]{color:#13ce66}.qa-status-running[data-v-0444bafe]{color:#666}.stop-response-btn[data-v-0444bafe]{position:absolute;top:-15px;right:50%;transform:translate(50%);border:1px solid #dddddd;border-radius:8px;padding:4px 8px;font-size:14px;color:#333;background:#fff;cursor:pointer;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important;white-space:nowrap}.stop-response-btn[data-v-0444bafe]:hover{background:#f5f5f5}.prompts-rise-enter-active[data-v-0444bafe]{transition:opacity .4s ease,transform .4s cubic-bezier(.16,1,.3,1)}.prompts-rise-enter-from[data-v-0444bafe]{opacity:0;transform:translateY(14px)}.prompts-rise-enter-to[data-v-0444bafe]{opacity:1;transform:translateY(0)}.model-type-toggle{position:absolute;top:34px;left:170px}.model-type-toggle .ant-switch-inner{white-space:nowrap;color:#fff;font-size:12px}.model-type-toggle.ant-switch{background-color:#13ce66}.model-type-toggle.ant-switch-checked{background-color:#409eff}.model-type-toggle.ant-switch:hover{background-color:#13ce66}.model-type-toggle.ant-switch-checked:hover{background-color:#409eff}#g-ai-robot[data-v-4b745e01]{position:fixed}#g-ai-robot .robot[data-v-4b745e01]{cursor:pointer;z-index:9990;touch-action:none}#g-ai-robot .robot .digital-human-wrap[data-v-4b745e01]{position:relative}#g-ai-robot .robot .digital-human-wrap .dialogImg[data-v-4b745e01]{z-index:9998;position:absolute;width:15%;height:auto;top:18%;left:73%;-webkit-user-select:auto!important;user-select:auto!important;pointer-events:auto!important}#g-ai-robot .robot .digital-human-wrap .disabled[data-v-4b745e01]{cursor:not-allowed}#g-ai-robot .robot .digital-human-wrap .statusImg[data-v-4b745e01]{z-index:9998;position:absolute;width:30%;height:30%}#g-ai-robot .robot .digital-human-wrap .QstatusImg[data-v-4b745e01]{width:29%!important;height:20%!important}#g-ai-robot .robot.disabled[data-v-4b745e01]{cursor:not-allowed}#g-ai-robot .robot img[data-v-4b745e01]{height:100px;width:100px}#g-ai-robot .robot .table-container[data-v-4b745e01]{touch-action:pan-x}@keyframes rotateCss-4b745e01{0%{transform:rotate(0)}25%{transform:rotate(90deg)}50%{transform:rotate(180deg)}70%{transform:rotate(270deg)}to{transform:rotate(360deg)}}@keyframes dialog-dock-in-4b745e01{0%{opacity:0;transform:scale(.15)}50%{opacity:1}75%{transform:scale(1.03)}to{opacity:1;transform:scale(1)}}@keyframes dialog-dock-out-4b745e01{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.15)}}.dialog-dock-enter-active[data-v-4b745e01]{animation:dialog-dock-in-4b745e01 .38s cubic-bezier(.16,1,.3,1) forwards;transform-origin:bottom left}.dialog-dock-leave-active[data-v-4b745e01]{animation:dialog-dock-out-4b745e01 .26s cubic-bezier(.55,0,1,.45) forwards;transform-origin:bottom left}
@@ -1,7 +1,7 @@
1
- /**
2
- * Vite plugin for g-ai-robot3 consumers.
3
- * Excludes the library from Vite's dependency pre-bundling so that
4
- * static assets (images, videos) referenced via `new URL()` resolve
1
+ /**
2
+ * Vite plugin for g-ai-robot3 consumers.
3
+ * Excludes the library from Vite's dependency pre-bundling so that
4
+ * static assets (images, videos) referenced via `new URL()` resolve
5
5
  * to their correct paths inside node_modules.
6
6
  *
7
7
  * Usage in consumer's vite.config.ts:
@@ -10,20 +10,20 @@
10
10
  *
11
11
  * export default defineConfig({
12
12
  * plugins: [gAiRobot()]
13
- * })
14
- */
15
- export default function gAiRobotAssets() {
16
- return {
17
- /***********************插件标识*********************/
18
- name: "g-ai-robot3-assets",
19
-
20
- /***********************消费者最小配置*********************/
21
- config() {
22
- return {
23
- optimizeDeps: {
24
- exclude: ["g-ai-robot3"],
25
- }
26
- };
27
- }
28
- };
29
- }
13
+ * })
14
+ */
15
+ export default function gAiRobotAssets() {
16
+ return {
17
+ /***********************插件标识*********************/
18
+ name: "g-ai-robot3-assets",
19
+
20
+ /***********************消费者最小配置*********************/
21
+ config() {
22
+ return {
23
+ optimizeDeps: {
24
+ exclude: ["g-ai-robot3"],
25
+ }
26
+ };
27
+ }
28
+ };
29
+ }
package/package.json CHANGED
@@ -1,69 +1,69 @@
1
- {
2
- "name": "g-ai-robot3",
3
- "private": false,
4
- "version": "1.1.1",
5
- "type": "module",
6
- "main": "dist/g-ai-robot3.es.js",
7
- "module": "dist/g-ai-robot3.es.js",
8
- "types": "dist/index.d.ts",
9
- "style": "dist/index.css",
10
- "exports": {
11
- ".": {
12
- "types": "./dist/index.d.ts",
13
- "import": "./dist/g-ai-robot3.es.js",
14
- "default": "./dist/g-ai-robot3.es.js"
15
- },
16
- "./dist/index.css": "./dist/index.css",
17
- "./style.css": "./dist/index.css",
18
- "./dist/assets/*": "./dist/assets/*",
19
- "./vite-plugin": {
20
- "types": "./dist/vite-plugin.d.mts",
21
- "import": "./dist/vite-plugin.mjs",
22
- "default": "./dist/vite-plugin.mjs"
23
- },
24
- "./package.json": "./package.json"
25
- },
26
- "files": [
27
- "dist"
28
- ],
29
- "scripts": {
30
- "dev": "node ./node_modules/vite/bin/vite.js",
31
- "typecheck": "node ./node_modules/vue-tsc/bin/vue-tsc.js --noEmit",
32
- "build": "npm run typecheck && node ./node_modules/vite/bin/vite.js build && node ./scripts/prepare-publish.mjs",
33
- "prepack": "npm run build",
34
- "preview": "node ./node_modules/vite/bin/vite.js preview",
35
- "pack:dry": "npm pack --dry-run",
36
- "release:dry": "npm pack --dry-run",
37
- "release": "npm publish"
38
- },
39
- "dependencies": {
40
- "@microsoft/fetch-event-source": "^2.0.1",
41
- "ant-design-vue": "^4.2.6",
42
- "ant-design-x-vue": "^1.6.0",
43
- "axios": "1.15.2",
44
- "markdown-it": "14.1.1",
45
- "pinyin-pro": "^3.25.0",
46
- "recorder-core": "^1.3.24102001"
47
- },
48
- "peerDependencies": {
49
- "vue": "^3.5.0"
50
- },
51
- "devDependencies": {
52
- "@ant-design/icons-vue": "^7.0.1",
53
- "@laynezh/vite-plugin-lib-assets": "^2.1.3",
54
- "@rollup/pluginutils": "^5.1.0",
55
- "@types/markdown-it": "^14.1.2",
56
- "@vitejs/plugin-vue": "^5.0.4",
57
- "less": "^4.0.0",
58
- "less-loader": "^8.0.0",
59
- "ol": "^10.8.0",
60
- "typescript": "^5.2.2",
61
- "vite": "^5.2.0",
62
- "vite-plugin-css-modules": "^0.0.1",
63
- "vite-plugin-dts": "^3.7.3",
64
- "vite-plugin-libcss": "^1.1.1",
65
- "vite-plugin-vue-devtools": "^7.7.2",
66
- "vue": "^3.5.10",
67
- "vue-tsc": "^2.0.6"
68
- }
69
- }
1
+ {
2
+ "name": "g-ai-robot3",
3
+ "private": false,
4
+ "version": "1.1.2",
5
+ "type": "module",
6
+ "main": "dist/g-ai-robot3.es.js",
7
+ "module": "dist/g-ai-robot3.es.js",
8
+ "types": "dist/index.d.ts",
9
+ "style": "dist/index.css",
10
+ "exports": {
11
+ ".": {
12
+ "types": "./dist/index.d.ts",
13
+ "import": "./dist/g-ai-robot3.es.js",
14
+ "default": "./dist/g-ai-robot3.es.js"
15
+ },
16
+ "./dist/index.css": "./dist/index.css",
17
+ "./style.css": "./dist/index.css",
18
+ "./dist/assets/*": "./dist/assets/*",
19
+ "./vite-plugin": {
20
+ "types": "./dist/vite-plugin.d.mts",
21
+ "import": "./dist/vite-plugin.mjs",
22
+ "default": "./dist/vite-plugin.mjs"
23
+ },
24
+ "./package.json": "./package.json"
25
+ },
26
+ "files": [
27
+ "dist"
28
+ ],
29
+ "scripts": {
30
+ "dev": "node ./node_modules/vite/bin/vite.js",
31
+ "typecheck": "node ./node_modules/vue-tsc/bin/vue-tsc.js --noEmit",
32
+ "build": "npm run typecheck && node ./node_modules/vite/bin/vite.js build && node ./scripts/prepare-publish.mjs",
33
+ "prepack": "npm run build",
34
+ "preview": "node ./node_modules/vite/bin/vite.js preview",
35
+ "pack:dry": "npm pack --dry-run",
36
+ "release:dry": "npm pack --dry-run",
37
+ "release": "npm publish"
38
+ },
39
+ "dependencies": {
40
+ "@microsoft/fetch-event-source": "^2.0.1",
41
+ "ant-design-vue": "^4.2.6",
42
+ "ant-design-x-vue": "^1.6.0",
43
+ "axios": "1.15.2",
44
+ "markdown-it": "14.1.1",
45
+ "pinyin-pro": "^3.25.0",
46
+ "recorder-core": "^1.3.24102001"
47
+ },
48
+ "peerDependencies": {
49
+ "vue": "^3.5.0"
50
+ },
51
+ "devDependencies": {
52
+ "@ant-design/icons-vue": "^7.0.1",
53
+ "@laynezh/vite-plugin-lib-assets": "^2.1.3",
54
+ "@rollup/pluginutils": "^5.1.0",
55
+ "@types/markdown-it": "^14.1.2",
56
+ "@vitejs/plugin-vue": "^5.0.4",
57
+ "less": "^4.0.0",
58
+ "less-loader": "^8.0.0",
59
+ "ol": "^10.8.0",
60
+ "typescript": "^5.2.2",
61
+ "vite": "^5.2.0",
62
+ "vite-plugin-css-modules": "^0.0.1",
63
+ "vite-plugin-dts": "^3.7.3",
64
+ "vite-plugin-libcss": "^1.1.1",
65
+ "vite-plugin-vue-devtools": "^7.7.2",
66
+ "vue": "^3.5.10",
67
+ "vue-tsc": "^2.0.6"
68
+ }
69
+ }