@blueking/ai-blueking 0.3.16 → 0.3.17
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.
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { RoleType, MessageStatus } from '../types/enum';
|
|
2
|
+
interface UseBkAiOptions {
|
|
3
|
+
useStream?: boolean;
|
|
4
|
+
apiUrl?: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function useBkAi(options?: UseBkAiOptions): {
|
|
7
|
+
loading: import("vue").Ref<boolean>;
|
|
8
|
+
messages: import("vue").Ref<{
|
|
9
|
+
status?: MessageStatus | undefined;
|
|
10
|
+
time?: string | number | undefined;
|
|
11
|
+
cite?: string | undefined;
|
|
12
|
+
role: RoleType;
|
|
13
|
+
content: string;
|
|
14
|
+
}[]>;
|
|
15
|
+
isShow: import("vue").Ref<boolean>;
|
|
16
|
+
handleShowAi: () => void;
|
|
17
|
+
handleClose: () => void;
|
|
18
|
+
handleClear: () => void;
|
|
19
|
+
handleSend: (args: any) => void;
|
|
20
|
+
handleStop: () => void;
|
|
21
|
+
};
|
|
22
|
+
export {};
|
|
@@ -21075,6 +21075,10 @@ const A_ = {
|
|
|
21075
21075
|
shortcuts: {
|
|
21076
21076
|
default: () => Yv,
|
|
21077
21077
|
type: Array
|
|
21078
|
+
},
|
|
21079
|
+
enablePopup: {
|
|
21080
|
+
default: !0,
|
|
21081
|
+
type: Boolean
|
|
21078
21082
|
}
|
|
21079
21083
|
},
|
|
21080
21084
|
data() {
|
|
@@ -21120,6 +21124,7 @@ const A_ = {
|
|
|
21120
21124
|
model: r.model,
|
|
21121
21125
|
isShow: r.isShow,
|
|
21122
21126
|
shortcuts: r.shortcuts,
|
|
21127
|
+
enablePopup: r.enablePopup,
|
|
21123
21128
|
onClear() {
|
|
21124
21129
|
e("clear", ...arguments);
|
|
21125
21130
|
},
|