diff --git a/.env b/.env index 91809a0e897..9e6c06e4841 100644 --- a/.env +++ b/.env @@ -137,7 +137,7 @@ PUBLIC_APP_DESCRIPTION=# description used throughout the app (if not set, a defa PUBLIC_APP_DATA_SHARING=#set to 1 to enable options & text regarding data sharing PUBLIC_APP_DISCLAIMER=#set to 1 to show a disclaimer on login page PUBLIC_APP_DISCLAIMER_MESSAGE="Disclaimer: AI is an area of active research with known problems such as biased generation and misinformation. Do not use this application for high-stakes decisions or advice. Do not insert your personal data, especially sensitive, like health data." -LLM_SUMMERIZATION=true +LLM_SUMMARIZATION=true EXPOSE_API=true # PUBLIC_APP_NAME=HuggingChat diff --git a/src/lib/server/textGeneration/title.ts b/src/lib/server/textGeneration/title.ts index 3d3359d0dc4..767805736ef 100644 --- a/src/lib/server/textGeneration/title.ts +++ b/src/lib/server/textGeneration/title.ts @@ -26,7 +26,7 @@ export async function* generateTitleForConversation( } export async function generateTitle(prompt: string) { - if (!env.LLM_SUMMERIZATION) { + if (!env.LLM_SUMMARIZATION) { return prompt.split(/\s+/g).slice(0, 5).join(" "); }