@ibiz-template-plugin/ai-chat 0.0.47 → 0.0.49
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/dist/index.es.js +372 -353
- package/dist/index.legacy.js +1 -1
- package/dist/types/controller/ai-chat/ai-chat.controller.d.ts +12 -0
- package/dist/types/controller/ai-topic/ai-topic.controller.d.ts +1 -1
- package/dist/types/entity/chart-topic/chart-topic.d.ts +0 -1
- package/dist/types/interface/i-chat-options/i-chat-options.d.ts +8 -0
- package/dist/types/interface/i-topic-options/i-topic-options.d.ts +0 -6
- package/package.json +1 -1
|
@@ -124,6 +124,10 @@ export declare class AiChatController {
|
|
|
124
124
|
* 模式参数,用于业务区分
|
|
125
125
|
*/
|
|
126
126
|
chatMode: string | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* 摘要是否正在处理完成
|
|
129
|
+
*/
|
|
130
|
+
private isDigestProcessed;
|
|
127
131
|
/**
|
|
128
132
|
* AI资源模式
|
|
129
133
|
*/
|
|
@@ -132,6 +136,14 @@ export declare class AiChatController {
|
|
|
132
136
|
* 当前话题是否禁止存储
|
|
133
137
|
*/
|
|
134
138
|
get currentTopicDisableStorage(): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* 当前话题标题模式
|
|
141
|
+
*/
|
|
142
|
+
get sessionCaptionMode(): 'default' | 'snippet' | 'summary';
|
|
143
|
+
/**
|
|
144
|
+
* 当前话题标题
|
|
145
|
+
*/
|
|
146
|
+
get sessionDefaultCaption(): string;
|
|
135
147
|
/**
|
|
136
148
|
* Creates an instance of AiChatController.
|
|
137
149
|
*
|
|
@@ -153,7 +153,7 @@ export declare class AiTopicController {
|
|
|
153
153
|
* @param topicId
|
|
154
154
|
* @param message
|
|
155
155
|
*/
|
|
156
|
-
updateTopicCaption(topicId: string,
|
|
156
|
+
updateTopicCaption(topicId: string, newCaption: string): Promise<void>;
|
|
157
157
|
/**
|
|
158
158
|
* 更新话题数据
|
|
159
159
|
*
|
|
@@ -19,7 +19,6 @@ export declare class ChatTopic implements ITopic {
|
|
|
19
19
|
get url(): ITopic['url'];
|
|
20
20
|
get aiChat(): ITopic['aiChat'];
|
|
21
21
|
get captionMode(): ITopic['captionMode'];
|
|
22
|
-
get captionFilled(): ITopic['captionFilled'];
|
|
23
22
|
get realid(): ITopic['realid'];
|
|
24
23
|
get sequence(): ITopic['sequence'];
|
|
25
24
|
get isTop(): ITopic['isTop'];
|
|
@@ -268,4 +268,12 @@ export interface IChatOptions extends IChat {
|
|
|
268
268
|
* @return {*} {Promise<object>}
|
|
269
269
|
*/
|
|
270
270
|
recommendPrompt(context: object, params: object, otherParams: object): Promise<object>;
|
|
271
|
+
/**
|
|
272
|
+
* 聊天内容摘要回调
|
|
273
|
+
* @param context
|
|
274
|
+
* @param params
|
|
275
|
+
* @param otherParams
|
|
276
|
+
* @return {*} {Promise<object>}
|
|
277
|
+
*/
|
|
278
|
+
chatDigest(context: object, params: object, otherParams: object): Promise<object>;
|
|
271
279
|
}
|