Files
FastGPT/client/src/api/response/chat.d.ts
2023-07-25 13:20:04 +08:00

31 lines
703 B
TypeScript

import type { ChatPopulate, AppSchema } from '@/types/mongoSchema';
import type { ChatItemType } from '@/types/chat';
import { VariableItemType } from '@/types/app';
export interface InitChatResponse {
chatId: string;
modelId: string;
systemPrompt?: string;
limitPrompt?: string;
model: {
name: string;
avatar: string;
intro: string;
canUse: boolean;
};
chatModel: AppSchema['chat']['chatModel']; // 对话模型名
history: ChatItemType[];
}
export interface InitShareChatResponse {
userAvatar: string;
maxContext: number;
app: {
variableModules?: VariableItemType[];
welcomeText?: string;
name: string;
avatar: string;
intro: string;
};
}