Skip to content

Commit

Permalink
⚖️ feat: Terms and Conditions Dialog (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxesse committed Aug 31, 2024
1 parent 1295542 commit 5ab4974
Showing 1 changed file with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ interface:
termsOfService:
externalUrl: "https://example.com/terms"
openNewTab: true
modalAcceptance: true
modalTitle: "Terms of Service"
modalContent: |
# Terms of Service
## Introduction
Welcome to LibreChat!
endpointsMenu: true
modelSelect: false
parameters: true
Expand Down Expand Up @@ -63,15 +69,18 @@ interface:
**Key:**
<OptionTable
options={[
['termsOfService', 'Object', 'Contains settings related to the terms of service link provided in the user interface.', 'Allows for the specification of a custom URL and the option to open it in a new tab.'],
['termsOfService', 'Object', 'Contains settings related to the terms of service link provided in the user interface.', 'Allows for the specification of a custom URL and the option to open it in a new tab, as well as a modal acceptance dialog for the terms of service.'],
]}
/>
**Sub-keys:**
<OptionTable
options={[
['externalUrl', 'String (URL)', 'The URL pointing to the terms of service document.', ''],
['openNewTab', 'Boolean', 'Specifies whether the link should open in a new tab.', ''],
['externalUrl', 'String (URL)', 'The URL pointing to the terms of service document.', 'https://librechat.ai/tos'],
['openNewTab', 'Boolean', 'Specifies whether the link should open in a new tab.', 'true'],
['modalAcceptance', 'Boolean', 'Specifies whether to show a modal terms and conditions dialog for users to accept in order to be able to use LibreChat.', 'true'],
['modalTitle', 'String', 'Specifies a custom title for the modal terms and conditions dialog (optional).', 'Terms of Service'],
['modalContent', 'String', 'Specifies the content of the modal terms and conditions dialog in MarkDown format.', 'See librechat.yaml.example for how to correctly format the multi-line parameter.'],
]}
/>
Expand Down

0 comments on commit 5ab4974

Please sign in to comment.