sidebar: apis: fix inconsistent tab switch

This commit is contained in:
end-4
2024-03-24 00:02:07 +07:00
parent 0555c945dd
commit 16ba0191a8
3 changed files with 16 additions and 7 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ export const GeminiSettings = () => MarginRevealer({
GeminiService.temperature = value;
},
}),
ConfigGap({ vertical: true, size: 10 }), // Note: size can only be 5, 10, or 15
ConfigGap({ vertical: true, size: 10 }), // Note: size can only be 5, 10, or 15
Box({
vertical: true,
hpack: 'fill',
@@ -106,7 +106,7 @@ export const GeminiSettings = () => MarginRevealer({
ConfigToggle({
icon: 'shield',
name: 'Safety',
desc: 'When turned off, tells the API not to block harmful/explicit content',
desc: 'When turned off, tells the API (not the model) \nto not block harmful/explicit content',
initValue: GeminiService.safe,
onChange: (self, newValue) => {
GeminiService.safe = newValue;