Project Files
dist / config.js
"use strict";
/**
* @file config.ts
* Plugin configuration schema - generates the LM Studio settings UI.
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.configSchematics = void 0;
const sdk_1 = require("@lmstudio/sdk");
const db_1 = require("./db");
const defaultStoragePath = (0, db_1.getDefaultStoragePath)();
const dbStorageFilenameSubtitle = `Filename inside the default storage path (${defaultStoragePath}), default is '${db_1.DEFAULT_DB_STORAGE_FILENAME}'. Allowed: letters, numbers, dot, dash, underscore. No path segments or '..'`;
exports.configSchematics = (0, sdk_1.createConfigSchematics)()
.field("dbStorageFilename", "string", {
displayName: "DB storage filename",
subtitle: dbStorageFilenameSubtitle,
}, db_1.DEFAULT_DB_STORAGE_FILENAME)
.field("enableTimestampUtilityTool", "select", {
displayName: "Enable timestamp utility",
subtitle: "Whether to enable the 'get_current_timestamp' tool, which provides the system date/time to models",
options: [
{
value: "on",
displayName: "On",
},
{
value: "off",
displayName: "Off",
},
],
}, "off")
.build();
//# sourceMappingURL=config.js.map