chat-ui / src /lib /types /Message.ts
Adrien Denat
✨ add thumb up/down voting system for messages (#152)
5b779a6 unverified
raw
history blame
No virus
140 Bytes
export interface Message {
from: "user" | "assistant";
id: ReturnType<typeof crypto.randomUUID>;
content: string;
score?: -1 | 0 | 1;
}