Explorar o código

refac: o1 title generation issue

Timothy Jaeryang Baek hai 5 meses
pai
achega
840437e58f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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';
 		}