* 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 <>
19 lines
362 B
TypeScript
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;
|
|
};
|