mirror of
https://gitea.toothfairyai.com/ToothFairyAI/tf_code.git
synced 2026-03-31 06:12:26 +00:00
lazy load LLMs even harder
This commit is contained in:
@@ -268,12 +268,8 @@ export namespace Server {
|
||||
},
|
||||
}),
|
||||
async (c) => {
|
||||
const providers = await LLM.providers()
|
||||
const result = [] as (Provider.Info & { key: string })[]
|
||||
for (const [key, provider] of Object.entries(providers)) {
|
||||
result.push({ ...provider.info, key })
|
||||
}
|
||||
return c.json(result)
|
||||
const providers = await Provider.active()
|
||||
return c.json(providers.values().toArray())
|
||||
},
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user