save model id on messages

main
Cogent Apps 2023-03-15 22:18:20 +00:00
parent fbc9e1cd1c
commit f588b3e484
2 changed files with 2 additions and 0 deletions

View File

@ -126,6 +126,7 @@ export class ChatManager extends EventEmitter {
chatID: latestMessage.chatID,
timestamp: Date.now(),
role: 'assistant',
model: requestedParameters.model,
content: '',
done: false,
};

View File

@ -13,6 +13,7 @@ export interface Message {
parentID?: string;
timestamp: number;
role: string;
model?: string;
content: string;
parameters?: Parameters;
done?: boolean;