cleanup
This commit is contained in:
parent
c460a7d957
commit
2afb05fd15
1 changed files with 1 additions and 1 deletions
|
|
@ -319,7 +319,7 @@ export const { use: useLocal, provider: LocalProvider } = createSimpleContext({
|
||||||
const provider = sync.data.provider.find((x) => x.id === m.providerID)
|
const provider = sync.data.provider.find((x) => x.id === m.providerID)
|
||||||
const info = provider?.models[m.modelID]
|
const info = provider?.models[m.modelID]
|
||||||
if (!info?.variants) return []
|
if (!info?.variants) return []
|
||||||
return Object.entries(info.variants).map(([name]) => name)
|
return Object.keys(info.variants)
|
||||||
},
|
},
|
||||||
set(value: string | undefined) {
|
set(value: string | undefined) {
|
||||||
const m = currentModel()
|
const m = currentModel()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue