neven4 commited on
Commit
e41faf6
·
unverified ·
1 Parent(s): 71b3944

fix(env): change env var typo (#1307)

Browse files
Files changed (2) hide show
  1. .env +1 -1
  2. src/lib/server/textGeneration/title.ts +1 -1
.env CHANGED
@@ -137,7 +137,7 @@ PUBLIC_APP_DESCRIPTION=# description used throughout the app (if not set, a defa
137
  PUBLIC_APP_DATA_SHARING=#set to 1 to enable options & text regarding data sharing
138
  PUBLIC_APP_DISCLAIMER=#set to 1 to show a disclaimer on login page
139
  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."
140
- LLM_SUMMERIZATION=true
141
 
142
  EXPOSE_API=true
143
  # PUBLIC_APP_NAME=HuggingChat
 
137
  PUBLIC_APP_DATA_SHARING=#set to 1 to enable options & text regarding data sharing
138
  PUBLIC_APP_DISCLAIMER=#set to 1 to show a disclaimer on login page
139
  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."
140
+ LLM_SUMMARIZATION=true
141
 
142
  EXPOSE_API=true
143
  # PUBLIC_APP_NAME=HuggingChat
src/lib/server/textGeneration/title.ts CHANGED
@@ -26,7 +26,7 @@ export async function* generateTitleForConversation(
26
  }
27
 
28
  export async function generateTitle(prompt: string) {
29
- if (!env.LLM_SUMMERIZATION) {
30
  return prompt.split(/\s+/g).slice(0, 5).join(" ");
31
  }
32
 
 
26
  }
27
 
28
  export async function generateTitle(prompt: string) {
29
+ if (!env.LLM_SUMMARIZATION) {
30
  return prompt.split(/\s+/g).slice(0, 5).join(" ");
31
  }
32