disable various irrelevant settings on prod
This commit is contained in:
parent
a03e823ecb
commit
3a51e83ee9
@ -46,6 +46,7 @@ function SettingsDialog({ settings, setSettings }: Props) {
|
||||
<DialogTitle className="mb-4">Settings</DialogTitle>
|
||||
</DialogHeader>
|
||||
|
||||
{!IS_RUNNING_ON_CLOUD && (
|
||||
<div className="flex items-center space-x-2">
|
||||
<Label htmlFor="image-generation">
|
||||
<div>DALL-E Placeholder Image Generation</div>
|
||||
@ -64,13 +65,16 @@ function SettingsDialog({ settings, setSettings }: Props) {
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="flex flex-col space-y-6">
|
||||
{!IS_RUNNING_ON_CLOUD && (
|
||||
<div>
|
||||
<Label htmlFor="openai-api-key">
|
||||
<div>OpenAI API key</div>
|
||||
<div className="font-light mt-1 mb-2 text-xs leading-relaxed">
|
||||
Only stored in your browser. Never stored on servers. Overrides
|
||||
your .env config.
|
||||
Only stored in your browser. Never stored on servers.
|
||||
Overrides your .env config.
|
||||
</div>
|
||||
</Label>
|
||||
|
||||
@ -86,6 +90,7 @@ function SettingsDialog({ settings, setSettings }: Props) {
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!IS_RUNNING_ON_CLOUD && (
|
||||
<div>
|
||||
@ -110,12 +115,13 @@ function SettingsDialog({ settings, setSettings }: Props) {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!IS_RUNNING_ON_CLOUD && (
|
||||
<div>
|
||||
<Label htmlFor="anthropic-api-key">
|
||||
<div>Anthropic API key</div>
|
||||
<div className="font-light mt-1 text-xs leading-relaxed">
|
||||
Only stored in your browser. Never stored on servers. Overrides
|
||||
your .env config.
|
||||
Only stored in your browser. Never stored on servers.
|
||||
Overrides your .env config.
|
||||
</div>
|
||||
</Label>
|
||||
|
||||
@ -131,7 +137,9 @@ function SettingsDialog({ settings, setSettings }: Props) {
|
||||
}
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
{!IS_RUNNING_ON_CLOUD && (
|
||||
<Accordion type="single" collapsible className="w-full">
|
||||
<AccordionItem value="item-1">
|
||||
<AccordionTrigger>Screenshot by URL Config</AccordionTrigger>
|
||||
@ -165,6 +173,7 @@ function SettingsDialog({ settings, setSettings }: Props) {
|
||||
</AccordionContent>
|
||||
</AccordionItem>
|
||||
</Accordion>
|
||||
)}
|
||||
|
||||
<Accordion type="single" collapsible className="w-full">
|
||||
<AccordionItem value="item-1">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user