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, chatID: latestMessage.chatID,
timestamp: Date.now(), timestamp: Date.now(),
role: 'assistant', role: 'assistant',
model: requestedParameters.model,
content: '', content: '',
done: false, done: false,
}; };

View File

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