|
3 | 3 | AlertTriangleIcon, |
4 | 4 | EyeIcon, |
5 | 5 | EyeOffIcon, |
| 6 | + InfoIcon, |
6 | 7 | KeyIcon, |
7 | 8 | TrashIcon, |
8 | 9 | } from 'lucide-react' |
@@ -62,6 +63,7 @@ export function AiSettings() { |
62 | 63 |
|
63 | 64 | return ( |
64 | 65 | <SettingsSection> |
| 66 | + <DisclaimerTerms /> |
65 | 67 | <FieldGroup |
66 | 68 | name="ai.apiKey" |
67 | 69 | label="OpenAI API Key" |
@@ -134,3 +136,52 @@ export function AiSettings() { |
134 | 136 | </SettingsSection> |
135 | 137 | ) |
136 | 138 | } |
| 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