Spaces:
Running
Running
File size: 562 Bytes
e943a05 1eff97d e943a05 1eff97d 5da61b4 4a6603b 1b66f8d e943a05 5b779a6 0e5c445 77399ca 1eff97d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import type { MessageUpdate } from "./MessageUpdate";
import type { Timestamps } from "./Timestamps";
import type { WebSearch } from "./WebSearch";
export type Message = Partial<Timestamps> & {
from: "user" | "assistant";
id: ReturnType<typeof crypto.randomUUID>;
content: string;
updates?: MessageUpdate[];
webSearchId?: WebSearch["_id"]; // legacy version
webSearch?: WebSearch;
score?: -1 | 0 | 1;
files?: string[]; // can contain either the hash of the file or the b64 encoded image data on the client side when uploading
interrupted?: boolean;
};
|