jan/web/app/_models/Conversation.ts
Louis a57dfe743b
fixes: #247 - inference plugin should check nitro service available (#313)
* fix: #247 - inference plugin should check nitro service available

* fix: #247 check service status and emit error if any

* chore: error handling

* chore: typo

* fix: open conversation does not work when model is deleted

* chore: reload plugins in development mode without exiting the process

* chore: move model file check to inference plugin

* update package-lock.json

---------

Co-authored-by: Hien To <>
2023-10-10 18:24:33 +07:00

19 lines
362 B
TypeScript

export interface Conversation {
id?: string;
model_id?: string;
name?: string;
image?: string;
message?: string;
created_at?: string;
updated_at?: string;
}
/**
* Store the state of conversation like fetching, waiting for response, etc.
*/
export type ConversationState = {
hasMore: boolean;
waitingForResponse: boolean;
error?: Error;
};