fix(settings): adjust Deepinfra options and placeholder text based on prod or not
This commit is contained in:
parent
4050170160
commit
4d3c2cf3cf
1 changed files with 6 additions and 1 deletions
|
|
@ -81,6 +81,11 @@ export function SettingsModal() {
|
||||||
{ id: 'custom', name: 'Other' }
|
{ id: 'custom', name: 'Other' }
|
||||||
];
|
];
|
||||||
case 'deepinfra':
|
case 'deepinfra':
|
||||||
|
if (!isDev) {
|
||||||
|
return [
|
||||||
|
{ id: 'hexgrad/Kokoro-82M', name: 'hexgrad/Kokoro-82M' }
|
||||||
|
];
|
||||||
|
}
|
||||||
return [
|
return [
|
||||||
{ id: 'hexgrad/Kokoro-82M', name: 'hexgrad/Kokoro-82M' },
|
{ id: 'hexgrad/Kokoro-82M', name: 'hexgrad/Kokoro-82M' },
|
||||||
{ id: 'canopylabs/orpheus-3b-0.1-ft', name: 'canopylabs/orpheus-3b-0.1-ft' },
|
{ id: 'canopylabs/orpheus-3b-0.1-ft', name: 'canopylabs/orpheus-3b-0.1-ft' },
|
||||||
|
|
@ -398,7 +403,7 @@ export function SettingsModal() {
|
||||||
type="password"
|
type="password"
|
||||||
value={localApiKey}
|
value={localApiKey}
|
||||||
onChange={(e) => handleInputChange('apiKey', e.target.value)}
|
onChange={(e) => handleInputChange('apiKey', e.target.value)}
|
||||||
placeholder="Using environment variable"
|
placeholder={!isDev && localTTSProvider === 'deepinfra' ? "Deepinfra free or override apikey" : "Using environment variable"}
|
||||||
className="w-full rounded-lg bg-background py-2 px-3 text-foreground shadow-sm focus:outline-none focus:ring-2 focus:ring-accent"
|
className="w-full rounded-lg bg-background py-2 px-3 text-foreground shadow-sm focus:outline-none focus:ring-2 focus:ring-accent"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue