@@ -675,7 +675,12 @@
if (messages.length == 2) {
window.history.replaceState(history.state, '', `/c/${_chatId}`);
- await setChatTitle(_chatId, userPrompt);
+
+ if ($settings?.titleAutoGenerateModel) {
+ await generateChatTitle(_chatId, userPrompt);
+ } else {
+ await setChatTitle(_chatId, userPrompt);
+ }
}
};