feat: show gpt model

This commit is contained in:
Liren Tu
2023-04-02 13:44:36 -07:00
parent 5843303076
commit d93c415bad
3 changed files with 8 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ import Locale from "../locales";
export type Message = ChatCompletionResponseMessage & {
date: string;
streaming?: boolean;
model?: string;
};
export enum SubmitKey {
@@ -322,6 +323,7 @@ export const useChatStore = create<ChatStore>()(
role: "assistant",
date: new Date().toLocaleString(),
streaming: true,
model: get().config.modelConfig.model,
};
// get recent messages