@blueking/chat-x 0.0.51-beta.3 → 0.0.51-beta.4
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,12 @@
|
|
|
1
1
|
import { type Interrupt, type InterruptResume, type UserMessage, MessageContentType, MessageStatus } from '../../ag-ui/types';
|
|
2
2
|
import { type AITippyProps, type IAiSlashMenuItem, type ISkillListItem, type Shortcut, type TagSchema, type UploadFile, UploadStatus } from '../../types';
|
|
3
3
|
import type { IModelOption } from './model-selector';
|
|
4
|
+
export type ChatInputUploadResult = {
|
|
5
|
+
download_url?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
id?: string;
|
|
8
|
+
status?: 'failed' | 'success';
|
|
9
|
+
};
|
|
4
10
|
export type ChatInputEmits = {
|
|
5
11
|
(e: 'selectShortcut', shortcut: Shortcut): void;
|
|
6
12
|
(e: 'deleteShortcut'): void;
|
|
@@ -18,12 +24,7 @@ export type ChatInputProps = {
|
|
|
18
24
|
payload?: InterruptResume;
|
|
19
25
|
}) => Promise<void>;
|
|
20
26
|
onStopSending?: () => Promise<void>;
|
|
21
|
-
onUpload?: (files: File) => Promise<
|
|
22
|
-
download_url?: string;
|
|
23
|
-
error?: string;
|
|
24
|
-
id?: string;
|
|
25
|
-
status?: 'failed' | 'success';
|
|
26
|
-
}>;
|
|
27
|
+
onUpload?: (files: File[]) => Promise<ChatInputUploadResult | ChatInputUploadResult[]>;
|
|
27
28
|
placeholder?: string;
|
|
28
29
|
prompts?: string[];
|
|
29
30
|
resources?: IAiSlashMenuItem[];
|