feat: show gpt model
This commit is contained in:
parent
5843303076
commit
d93c415bad
|
@ -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>
|
||||
|
|
|
@ -324,6 +324,7 @@
|
|||
padding-top: 5px;
|
||||
box-sizing: border-box;
|
||||
font-size: 12px;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.chat-message-action-date {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue