mirror of
https://gitlab.com/soapbox-pub/shakespeare.git
synced 2026-12-06 00:27:24 +00:00
Allow apiKey to be empty
This commit is contained in:
5 files changed
+8
-46
No files matched your search
@@ -165,7 +165,6 @@ export function AISettingsDialog({ open: controlledOpen, onOpenChange }: AISetti
|
||||
const preset = PRESET_PROVIDERS.find(p => p.id === providerId);
|
||||
const provider = localProviders[providerId];
|
||||
const isCustom = !preset;
|
||||
const hasApiKey = provider?.apiKey && provider.apiKey.length > 0;
|
||||
|
||||
return (
|
||||
<AccordionItem key={providerId} value={providerId} className="border rounded-lg">
|
||||
@@ -176,11 +175,6 @@ export function AISettingsDialog({ open: controlledOpen, onOpenChange }: AISetti
|
||||
{preset?.name || providerId}
|
||||
</span>
|
||||
{isCustom && <Badge variant="outline">Custom</Badge>}
|
||||
{hasApiKey && (
|
||||
<Badge variant="secondary" className="text-xs">
|
||||
Configured
|
||||
</Badge>
|
||||
)}
|
||||
</div>
|
||||
<Button
|
||||
variant="ghost"
|
||||
|
||||
Reference in new issue
Block a user