Skip to content

Commit 4d3c2cf

Browse files
committed
fix(settings): adjust Deepinfra options and placeholder text based on prod or not
1 parent 4050170 commit 4d3c2cf

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/components/SettingsModal.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ export function SettingsModal() {
8181
{ id: 'custom', name: 'Other' }
8282
];
8383
case 'deepinfra':
84+
if (!isDev) {
85+
return [
86+
{ id: 'hexgrad/Kokoro-82M', name: 'hexgrad/Kokoro-82M' }
87+
];
88+
}
8489
return [
8590
{ id: 'hexgrad/Kokoro-82M', name: 'hexgrad/Kokoro-82M' },
8691
{ id: 'canopylabs/orpheus-3b-0.1-ft', name: 'canopylabs/orpheus-3b-0.1-ft' },
@@ -398,7 +403,7 @@ export function SettingsModal() {
398403
type="password"
399404
value={localApiKey}
400405
onChange={(e) => handleInputChange('apiKey', e.target.value)}
401-
placeholder="Using environment variable"
406+
placeholder={!isDev && localTTSProvider === 'deepinfra' ? "Deepinfra free or override apikey" : "Using environment variable"}
402407
className="w-full rounded-lg bg-background py-2 px-3 text-foreground shadow-sm focus:outline-none focus:ring-2 focus:ring-accent"
403408
/>
404409
</div>

0 commit comments

Comments
 (0)