Skip to content

Commit 61079d3

Browse files
internal: Add AI usage disclaimer (#944)
Co-authored-by: Uladzimir Dzmitračkoŭ <3773351+going-confetti@users.noreply.github.com>
1 parent 37b3201 commit 61079d3

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed

src/components/Settings/AiSettings.tsx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import {
33
AlertTriangleIcon,
44
EyeIcon,
55
EyeOffIcon,
6+
InfoIcon,
67
KeyIcon,
78
TrashIcon,
89
} from 'lucide-react'
@@ -62,6 +63,7 @@ export function AiSettings() {
6263

6364
return (
6465
<SettingsSection>
66+
<DisclaimerTerms />
6567
<FieldGroup
6668
name="ai.apiKey"
6769
label="OpenAI API Key"
@@ -134,3 +136,52 @@ export function AiSettings() {
134136
</SettingsSection>
135137
)
136138
}
139+
140+
function DisclaimerTerms() {
141+
return (
142+
<Callout.Root color="gray" mb="3" variant="soft">
143+
<Callout.Icon>
144+
<InfoIcon />
145+
</Callout.Icon>
146+
<Callout.Text size="2">
147+
<Text as="p" weight="bold" mb="3">
148+
Disclaimer: Use of your own OpenAI API Key
149+
</Text>
150+
<Box>
151+
<Text>
152+
By adding your OpenAI key, you acknowledge and agree to the
153+
following:
154+
</Text>
155+
<ul
156+
css={{
157+
paddingLeft: 'var(--space-5)',
158+
marginBottom: 0,
159+
marginTop: 'var(--space-2)',
160+
li: { marginBottom: 'var(--space-1)' },
161+
}}
162+
>
163+
<li>
164+
Use of your OpenAI key will be subject to your separate OpenAI
165+
agreement and any associated billing with respect to such usage.
166+
</li>
167+
<li>
168+
Output is generated through artificial intelligence processes,
169+
including technology provided by OpenAI, who will process your
170+
data. More detail can be found in the product documentation.
171+
</li>
172+
<li>
173+
Grafana Labs does not warrant any output to have been tested,
174+
verified, endorsed, or guaranteed to be accurate, complete, or
175+
current.
176+
</li>
177+
<li>
178+
You are responsible for the security, management, and activities
179+
associated with your API key. Your OpenAI key is not transmitted
180+
to Grafana Labs and Grafana Labs does not store your OpenAI key.
181+
</li>
182+
</ul>
183+
</Box>
184+
</Callout.Text>
185+
</Callout.Root>
186+
)
187+
}

0 commit comments

Comments
 (0)