mirror of
https://github.com/voideditor/void
synced 2026-05-24 01:48:25 +00:00
minor 'true' update
This commit is contained in:
parent
66037e2049
commit
f20f41c804
1 changed files with 4 additions and 4 deletions
|
|
@ -13,18 +13,18 @@ export const SidebarModelSettingsForFeature = ({ featureName }: { featureName: F
|
|||
|
||||
const voidConfigState = useConfigState()
|
||||
|
||||
const models: [string,string][] = []
|
||||
const models: [string, string][] = []
|
||||
for (const providerName of providerNames) {
|
||||
const providerConfig = voidConfigState[providerName]
|
||||
if (providerConfig.enabled === 'false') continue
|
||||
if (providerConfig.enabled !== 'true') continue
|
||||
providerConfig.models?.forEach(model => {
|
||||
models.push([providerName,model])
|
||||
models.push([providerName, model])
|
||||
})
|
||||
}
|
||||
|
||||
return <>
|
||||
<h1>Settings - {featureName}</h1>
|
||||
{models.map(([providerName,model], i) => <p key={i}>{providerName} - {model}</p>)}
|
||||
{models.map(([providerName, model], i) => <p key={i}>{providerName} - {model}</p>)}
|
||||
</>
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue