sidebar: gemini: add safety settings

This commit is contained in:
end-4
2024-03-23 16:08:48 +07:00
parent 25355946b6
commit 8dff78172d
2 changed files with 21 additions and 7 deletions
@@ -104,6 +104,15 @@ export const GeminiSettings = () => MarginRevealer({
GeminiService.assistantPrompt = newValue;
},
}),
ConfigToggle({
icon: 'shield',
name: 'Safety',
desc: 'When turned off, tells the API not to block harmful/explicit content',
initValue: GeminiService.safe,
onChange: (self, newValue) => {
GeminiService.safe = newValue;
},
}),
]
})
]