Project Files
src / configSchematics.ts
import { createConfigSchematics } from "@lmstudio/sdk";
// This file contains the definition of configuration schematics for your plugin.
export const configSchematics = createConfigSchematics()
.field(
"myCustomField", // The key of the field.
"numeric", // Type of the field.
// Options for the field. Different field types will have different options.
{
displayName: "My Custom Field",
hint: "This is my custom field. Doesn't do anything special.",
slider: { min: 0, max: 100, step: 1 }, // Add a slider to the field.
},
80, // Default Value
)
// You can add more fields by chaining the field method.
// For example:
// .field("anotherField", ...)
.build();
src / configSchematics.ts
import { createConfigSchematics } from "@lmstudio/sdk";
// This file contains the definition of configuration schematics for your plugin.
export const configSchematics = createConfigSchematics()
.field(
"myCustomField", // The key of the field.
"numeric", // Type of the field.
// Options for the field. Different field types will have different options.
{
displayName: "My Custom Field",
hint: "This is my custom field. Doesn't do anything special.",
slider: { min: 0, max: 100, step: 1 }, // Add a slider to the field.
},
80, // Default Value
)
// You can add more fields by chaining the field method.
// For example:
// .field("anotherField", ...)
.build();