@blueking/ai-ui-sdk 0.0.7-beta.5 → 0.0.7-beta.6

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.
@@ -17,10 +17,3 @@ export declare function durationFormatter(val: number): string;
17
17
  */
18
18
  export declare function handleDownLoad(source: string, filename?: string): void;
19
19
  export declare const handleCopy: (text: string) => void;
20
- /**
21
- * 处理提示词模板,替换模板中的变量
22
- * @param prompt 提示词模板
23
- * @param selectedText 选中的文本
24
- * @returns 处理后的提示词
25
- */
26
- export declare const processPromptTemplate: (prompt: string, selectedText: string) => string;
@@ -1,4 +1,4 @@
1
- import type { ISessionContent, ISession, ISessionPrompt, ChatCallbacks, BasicChatContent, ShortcutChatContent } from '../types/type.ts';
1
+ import type { ISessionContent, ISession, ISessionPrompt, ChatCallbacks } from '../types/type.ts';
2
2
  import { SessionContentRole, SessionContentStatus } from '../types/enum';
3
3
  type SessionContentsMap = {
4
4
  [key: string]: ISessionContent[];
@@ -6,7 +6,7 @@ type SessionContentsMap = {
6
6
  type SessionLoadingMap = {
7
7
  [key: string]: boolean;
8
8
  };
9
- export declare const useChat: <T extends ISession = ISession>({ handleStart, handleText, handleReferenceDoc, handleThink, handleEnd, handleError, requestOptions, }?: ChatCallbacks) => {
9
+ export declare const useChat: <T extends ISession = ISession>({ handleStart, handleText, handleReferenceDoc, handleThink, handleEnd, handleError, }?: ChatCallbacks) => {
10
10
  currentSession: import("vue").Ref<T | undefined, T | undefined>;
11
11
  sessionContents: import("vue").Ref<{
12
12
  id?: number | undefined;
@@ -21,8 +21,6 @@ export declare const useChat: <T extends ISession = ISession>({ handleStart, han
21
21
  rate?: number | undefined;
22
22
  status?: SessionContentStatus | undefined;
23
23
  sessionCode: string;
24
- cite?: string | undefined;
25
- time?: string | undefined;
26
24
  }[], ISessionContent[] | {
27
25
  id?: number | undefined;
28
26
  createdAt?: string | undefined;
@@ -36,20 +34,16 @@ export declare const useChat: <T extends ISession = ISession>({ handleStart, han
36
34
  rate?: number | undefined;
37
35
  status?: SessionContentStatus | undefined;
38
36
  sessionCode: string;
39
- cite?: string | undefined;
40
- time?: string | undefined;
41
37
  }[]>;
42
38
  sessionContentsMap: SessionContentsMap;
43
39
  sessionLoadingMap: import("vue").Ref<SessionLoadingMap, SessionLoadingMap>;
44
40
  prompts: import("vue").ComputedRef<ISessionPrompt[]>;
45
- currentSessionLoading: import("vue").ComputedRef<boolean>;
46
41
  chat: ({ sessionCode, data, url, headers, }: {
47
42
  sessionCode: string;
48
43
  data?: Record<string, any>;
49
44
  url: string;
50
45
  headers?: Record<string, string>;
51
46
  }) => void;
52
- sendChat: (content: BasicChatContent | ShortcutChatContent, callback?: () => void) => void;
53
47
  stopChat: (sessionCode: string) => void;
54
48
  plusSessionContent: (sessionCode: string, sessionContent: ISessionContent) => void;
55
49
  updateSessionContent: (sessionContent: ISessionContent) => void;
@@ -62,11 +56,5 @@ export declare const useChat: <T extends ISession = ISession>({ handleStart, han
62
56
  deleteSessionContents: (sessionCode: string, contentIds: number[]) => number[];
63
57
  handleStartChat: (sessionCode: string) => void | undefined;
64
58
  handleErrorChat: (sessionCode: string, message: string, code?: string) => void | undefined;
65
- reGenerateChat: (chatIndex: number) => void;
66
- reSendChat: (index: number, { message, cite }: {
67
- message: string;
68
- cite?: string;
69
- }, callback?: () => void) => void;
70
- deleteChat: (index: number) => void;
71
59
  };
72
60
  export {};