Spaces:
Paused
Paused
fix(env): change env var typo (#1307)
Browse files- .env +1 -1
- 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 |
-
|
| 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.
|
| 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 |
|