Merge branch 'main' into feat/delete-message

This commit is contained in:
Timothy Jaeryang Baek
2024-02-22 20:57:46 -05:00
committed by GitHub
64 changed files with 2281 additions and 771 deletions
+7 -1
View File
@@ -755,7 +755,13 @@
const generateChatTitle = async (_chatId, userPrompt) => {
if ($settings.titleAutoGenerate ?? true) {
const title = await generateTitle(localStorage.token, selectedModels[0], userPrompt);
const title = await generateTitle(
localStorage.token,
$settings?.titleGenerationPrompt ??
"Create a concise, 3-5 word phrase as a header for the following query, strictly adhering to the 3-5 word limit and avoiding the use of the word 'title': {{prompt}}",
$settings?.titleAutoGenerateModel ?? selectedModels[0],
userPrompt
);
if (title) {
await setChatTitle(_chatId, title);