khronoz's picture
V.0.3.0 (#28)
fdaf912 unverified
raw
history blame contribute delete
517 Bytes
export interface Message {
id: string;
content: string;
role: string;
}
export interface ChatHandler {
collSelectedId: string;
collSelectedName: string;
handleCollIdSelect: (collection_id: string) => void;
handleCollNameSelect: (display_name: string) => void;
messages: Message[];
input: string;
isLoading: boolean;
handleSubmit: (e: React.FormEvent<HTMLFormElement>) => void;
handleInputChange: (e: React.ChangeEvent<HTMLInputElement>) => void;
reload?: () => void;
stop?: () => void;
}