* fix(UI): #250 better chat left side bar Signed-off-by: James <james@jan.ai> Co-authored-by: James <james@jan.ai>
21 lines
404 B
TypeScript
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;
|
|
};
|