jan/web/app/_models/Conversation.ts
NamH 84dd54a98c
Fix/250 (#349)
* fix(UI): #250 better chat left side bar

Signed-off-by: James <james@jan.ai>
Co-authored-by: James <james@jan.ai>
2023-10-15 07:46:15 -07:00

21 lines
404 B
TypeScript

export interface Conversation {
_id?: string;
modelId?: string;
name?: string;
image?: string;
message?: string;
lastMessage?: string;
summary?: string;
createdAt?: string;
updatedAt?: string;
}
/**
* Store the state of conversation like fetching, waiting for response, etc.
*/
export type ConversationState = {
hasMore: boolean;
waitingForResponse: boolean;
error?: Error;
};