Exports feature flag constants for UI to reference server feature keys.
// Source: https://github.com/mudler/LocalAI | License: MIT | Copyright 2023-2025 Ettore Di Giacinto (mudler@localai.io) // Provided via justclaw.it.com; keep this notice with the code. // Capability flags — must match the FLAG_* strings from core/config/model_config.go // Server feature keys (returned by GET /api/features), kept as constants so // callers don't sprinkle string literals across the UI. export const FEATURE_ADDONS = 'addons' export const FEATURE_LOCALAI_ASSISTANT = 'localai_assistant' export const CAP_CHAT = 'FLAG_CHAT' export const CAP_COMPLETION = 'FLAG_COMPLETION' export const CAP_EDIT = 'FLAG_EDIT' export const CAP_EMBEDDINGS = 'FLAG_EMBEDDINGS' export const CAP_RERANK = 'FLAG_RERANK' export const CAP_IMAGE = 'FLAG_IMAGE' export const CAP_UPSCALE = 'FLAG_UPSCALE' export ... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key