mirror of
https://github.com/mudler/LocalAI.git
synced 2026-10-30 01:58:45 -04:00
Add the add-on runtime to LocalAI: manifests, the host operation broker, admin gating by account role, the add-on UI bundle builder and the SDK for add-on pages. Move the navigation to Chat, Models, Add-ons and Settings, with pinned add-ons in the sidebar and an Add-ons drawer. Ship the first-party add-ons (voice, face, fine-tuning, quantization) as packages for linux/amd64, linux/arm64 and darwin/arm64. Intel macOS (darwin/amd64) is enabled in the platform files. Squashed from the review branch. The tree is unchanged; the pre-squash history is kept on a local backup branch. Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
14 lines
473 B
JavaScript
14 lines
473 B
JavaScript
import { fileURLToPath } from 'node:url'
|
|
import { dirname } from 'node:path'
|
|
import { buildAddonUI } from '../../internal/uibuild/uibuild.mjs'
|
|
|
|
const here = dirname(fileURLToPath(import.meta.url))
|
|
|
|
export async function build() {
|
|
return buildAddonUI({ root: here, name: 'quantization', rgb: [38, 110, 128] })
|
|
}
|
|
|
|
if (process.argv[1] === fileURLToPath(import.meta.url)) {
|
|
build().then((dir) => console.log(`built ${dir}`), (e) => { console.error(e); process.exit(1) })
|
|
}
|