feat: 修改chat的数据结构
This commit is contained in:
13
src/api/response/chat.d.ts
vendored
Normal file
13
src/api/response/chat.d.ts
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { ChatPopulate, ModelSchema } from '@/types/mongoSchema';
|
||||
import type { ChatItemType } from '@/types/chat';
|
||||
|
||||
export type InitChatResponse = {
|
||||
chatId: string;
|
||||
modelId: string;
|
||||
name: string;
|
||||
avatar: string;
|
||||
secret: ModelSchema.secret;
|
||||
chatModel: ModelSchema.service.ChatModel; // 模型名
|
||||
history: ChatItemType[];
|
||||
isExpiredTime: boolean;
|
||||
};
|
||||
Reference in New Issue
Block a user