From f588b3e484bfb7ba5e6e1c3a62163a38bb400416 Mon Sep 17 00:00:00 2001 From: Cogent Apps Date: Wed, 15 Mar 2023 22:18:20 +0000 Subject: [PATCH] save model id on messages --- app/src/chat-manager.ts | 1 + app/src/types.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/app/src/chat-manager.ts b/app/src/chat-manager.ts index 987d067..f36f9fd 100644 --- a/app/src/chat-manager.ts +++ b/app/src/chat-manager.ts @@ -126,6 +126,7 @@ export class ChatManager extends EventEmitter { chatID: latestMessage.chatID, timestamp: Date.now(), role: 'assistant', + model: requestedParameters.model, content: '', done: false, }; diff --git a/app/src/types.ts b/app/src/types.ts index 8f4945a..c972495 100644 --- a/app/src/types.ts +++ b/app/src/types.ts @@ -13,6 +13,7 @@ export interface Message { parentID?: string; timestamp: number; role: string; + model?: string; content: string; parameters?: Parameters; done?: boolean;