Skip to content

Commit dd75ebc

Browse files
authored
feat(ChatWindow): make caveat configurable (#2406)
1 parent 0037279 commit dd75ebc

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ PUBLIC_SHARE_PREFIX=
2828
PUBLIC_GOOGLE_ANALYTICS_ID=
2929
PUBLIC_PLAUSIBLE_SCRIPT_URL=
3030
PUBLIC_APPLE_APP_ID=
31+
# Caveat text shown below the chat input on new chats.
32+
# Defaults to "Generated content may be inaccurate or false." if unset.
33+
PUBLIC_CAVEAT=
3134
# Feature announcements shown as a toast on the home screen (no conversation open).
3235
# JSON5 array of { title, description, link?, cta?, maxDate? }; the last valid entry is shown.
3336
# cta overrides the link label (defaults to "Learn more").

src/lib/components/chat/ChatWindow.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -984,7 +984,9 @@
984984
</span>
985985
{/if}
986986
{#if !messages.length && !loading}
987-
<span class="max-sm:hidden">Generated content may be inaccurate or false.</span>
987+
<span class="max-sm:hidden"
988+
>{publicConfig.PUBLIC_CAVEAT || "Generated content may be inaccurate or false."}</span
989+
>
988990
{/if}
989991
{#if $settings.reasoningOverrides?.[currentModel.id] ?? currentModel.supportsReasoning}
990992
<div class="ml-auto">

0 commit comments

Comments
 (0)