diff --git a/app/store/chat.ts b/app/store/chat.ts index 1e4a08cd3f2..f6372260729 100644 --- a/app/store/chat.ts +++ b/app/store/chat.ts @@ -83,7 +83,7 @@ function createEmptySession(): ChatSession { // fix known issue where summarize is not using the current model selected function getSummarizeModel(currentModel: string, modelConfig: ModelConfig) { // should be depends of user selected - return currentModel.startsWith("gpt") ? modelConfig.model : currentModel; + return currentModel ? modelConfig.model : currentModel; } function countMessages(msgs: ChatMessage[]) {