src / config.ts
import { createConfigSchematics } from "@lmstudio/sdk";
export const configSchematics = createConfigSchematics()
.field(
"maxResultsLimit",
"numeric",
{
displayName: "Results Limit",
subtitle: "Upper bound on the number of results returned",
int: true,
min: 1,
max: 50,
slider: { min: 1, max: 50, step: 1 },
},
10,
)
.build();
export const globalConfigSchematics = createConfigSchematics()
.field(
"searxngUrl",
"string",
{
displayName: "SearXNG API URL",
subtitle: "Base URL of your SearXNG instance",
placeholder: "https://searxng.example.com",
},
"",
)
.build();