feat: add gpt-4 icon

This commit is contained in:
wangao
2023-04-18 00:51:17 +08:00
parent 78c9e66c1f
commit aca06d9fe4
3 changed files with 43 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ export type Message = ChatCompletionResponseMessage & {
streaming?: boolean;
isError?: boolean;
id?: number;
model?: string;
};
export function createMessage(override: Partial<Message>): Message {
@@ -387,6 +388,7 @@ export const useChatStore = create<ChatStore>()(
role: "assistant",
streaming: true,
id: userMessage.id! + 1,
model: get().config.modelConfig.model,
});
// get recent messages