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

@ -602,6 +602,11 @@ export function Chat(props: {
<div className={styles["chat-message-action-date"]}>
{message.date.toLocaleString()}
</div>
{message.model && (
<div className={styles["chat-message-action-date"]}>
{message.model}
</div>
)}
</div>
)}
</div>

View File

@ -324,6 +324,7 @@
padding-top: 5px;
box-sizing: border-box;
font-size: 12px;
justify-content: space-between;
}
.chat-message-action-date {

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