@farris/x-ui 0.2.3 → 0.2.5
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ExtractPropTypes, PropType } from '../../../../../vue';
|
|
2
2
|
import { ThinkContent } from '../../../../../../../composition/types';
|
|
3
|
-
import { OutputMode } from '
|
|
3
|
+
import { OutputMode } from '../../../../../../../../../common';
|
|
4
4
|
|
|
5
5
|
export declare const bubbleThinkProps: {
|
|
6
6
|
/** 思考内容 */
|
|
@@ -5,12 +5,15 @@
|
|
|
5
5
|
* 用于解析和处理包含 assistant-widget 代码块的文本内容。
|
|
6
6
|
* 主要处理流式渲染场景下文本被截断的情况,支持识别完整和不完整的 widget 结构。
|
|
7
7
|
*
|
|
8
|
-
*
|
|
8
|
+
* @支持格式(空白均可选,`\s` 含空格/换行/制表符)
|
|
9
|
+
* - 开围栏:` ```assistant-widget` 与 ` ``` assistant-widget` 等价(``` 与语言标之间)
|
|
10
|
+
* - 语言标:`assistant-widget` 前后均可有空白,如 ` ``` assistant-widget `
|
|
11
|
+
* - 闭围栏:`{...}``` 与 `{...} ``` ` 等价(JSON 正文与 ``` 之间)
|
|
9
12
|
* - 标准:``` assistant-widget {...} ```
|
|
10
|
-
* - 紧凑:```assistant-widget{...}
|
|
13
|
+
* - 紧凑:```assistant-widget{...}```
|
|
11
14
|
* - 换行:```\nassistant-widget\n{...}\n```
|
|
12
|
-
* - 内联后缀:``` assistant-widget {...}
|
|
13
|
-
* - 流式前缀:``` / ```assistant / ```assistant-widget
|
|
15
|
+
* - 内联后缀:``` assistant-widget {...}```后续正文(闭围栏后同段仍有文字)
|
|
16
|
+
* - 流式前缀:``` / ```assistant / ```assistant-widget(未闭合;**不含** markdown 代码块闭围栏 ```)
|
|
14
17
|
*
|
|
15
18
|
* @module
|
|
16
19
|
* - `formatDisplayText`: 将含 widget 的文本分割为数组
|