Просмотр исходного кода

refac: o1 title generation issue

Timothy Jaeryang Baek 5 месяцев назад
Родитель
Сommit
840437e58f
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/lib/components/chat/Chat.svelte

+ 1 - 1
src/lib/components/chat/Chat.svelte

@@ -1976,7 +1976,7 @@
 				}
 			);
 
-			return title;
+			return title ? title : (lastUserMessage?.content ?? 'New Chat');
 		} else {
 			return lastUserMessage?.content ?? 'New Chat';
 		}