chore: generate
This commit is contained in:
parent
93eee0daf4
commit
d475fd6137
1 changed files with 1 additions and 3 deletions
|
|
@ -1243,9 +1243,7 @@ export namespace Provider {
|
|||
return { providerID: entry.providerID, modelID: entry.modelID }
|
||||
}
|
||||
|
||||
const provider = Object.values(providers).find(
|
||||
(p) => !cfg.provider || Object.keys(cfg.provider).includes(p.id),
|
||||
)
|
||||
const provider = Object.values(providers).find((p) => !cfg.provider || Object.keys(cfg.provider).includes(p.id))
|
||||
if (!provider) throw new Error("no providers found")
|
||||
const [model] = sort(Object.values(provider.models))
|
||||
if (!model) throw new Error("no models found")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue