feat: Add custom loader for Chutes provider

This commit is contained in:
southseact-3d
2026-02-08 15:55:33 +00:00
parent 50fda4000c
commit fccfd80b10

View File

@@ -556,6 +556,19 @@ export namespace Provider {
}, },
} }
}, },
chutes: async (input) => {
const hasKey = await (async () => {
const env = Env.all()
if (input.env.some((item) => env[item])) return true
if (await Auth.get(input.id)) return true
return false
})()
return {
autoload: hasKey,
options: {},
}
},
} }
export const Model = z export const Model = z